@mastra/core 1.11.0-alpha.1 → 1.11.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 (119) hide show
  1. package/CHANGELOG.md +336 -0
  2. package/dist/agent/index.cjs +13 -13
  3. package/dist/agent/index.js +2 -2
  4. package/dist/agent/message-list/conversion/output-converter.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/{chunk-2CSKXHM7.cjs → chunk-6NZQ52RZ.cjs} +22 -10
  8. package/dist/chunk-6NZQ52RZ.cjs.map +1 -0
  9. package/dist/{chunk-7P77FWM6.js → chunk-7FVJIJGY.js} +3 -3
  10. package/dist/{chunk-7P77FWM6.js.map → chunk-7FVJIJGY.js.map} +1 -1
  11. package/dist/{chunk-MIAFERSL.js → chunk-7UM6FE6A.js} +8 -2
  12. package/dist/chunk-7UM6FE6A.js.map +1 -0
  13. package/dist/{chunk-CDXZJ3PO.cjs → chunk-E7PW4ZAB.cjs} +8 -2
  14. package/dist/chunk-E7PW4ZAB.cjs.map +1 -0
  15. package/dist/{chunk-L7NBGABG.cjs → chunk-FIQRYC7M.cjs} +4 -4
  16. package/dist/{chunk-L7NBGABG.cjs.map → chunk-FIQRYC7M.cjs.map} +1 -1
  17. package/dist/{chunk-V5SM5A4F.cjs → chunk-FN6ZOGJ7.cjs} +6 -6
  18. package/dist/{chunk-V5SM5A4F.cjs.map → chunk-FN6ZOGJ7.cjs.map} +1 -1
  19. package/dist/{chunk-RH5O4YBE.cjs → chunk-NJVIJQ4R.cjs} +3 -3
  20. package/dist/{chunk-RH5O4YBE.cjs.map → chunk-NJVIJQ4R.cjs.map} +1 -1
  21. package/dist/{chunk-PUTCRAH6.cjs → chunk-QAIBZ7GH.cjs} +235 -230
  22. package/dist/{chunk-PUTCRAH6.cjs.map → chunk-QAIBZ7GH.cjs.map} +1 -1
  23. package/dist/{chunk-JNNKF6W5.cjs → chunk-QGT2HJGX.cjs} +24 -24
  24. package/dist/{chunk-JNNKF6W5.cjs.map → chunk-QGT2HJGX.cjs.map} +1 -1
  25. package/dist/{chunk-J4V2WVFG.js → chunk-RF2EPUM4.js} +3 -3
  26. package/dist/{chunk-J4V2WVFG.js.map → chunk-RF2EPUM4.js.map} +1 -1
  27. package/dist/{chunk-C574TBOV.js → chunk-S5BMBKUR.js} +20 -15
  28. package/dist/{chunk-C574TBOV.js.map → chunk-S5BMBKUR.js.map} +1 -1
  29. package/dist/{chunk-XWMBFPD5.js → chunk-VW4MYD6N.js} +3 -3
  30. package/dist/{chunk-XWMBFPD5.js.map → chunk-VW4MYD6N.js.map} +1 -1
  31. package/dist/{chunk-WLS37KH3.js → chunk-W3LSSG4T.js} +3 -3
  32. package/dist/{chunk-WLS37KH3.js.map → chunk-W3LSSG4T.js.map} +1 -1
  33. package/dist/{chunk-GQRY6HEY.js → chunk-WD467XGW.js} +22 -10
  34. package/dist/chunk-WD467XGW.js.map +1 -0
  35. package/dist/{chunk-QYYWWS3U.cjs → chunk-YTND5227.cjs} +2 -2
  36. package/dist/chunk-YTND5227.cjs.map +1 -0
  37. package/dist/{chunk-5FNG2ISL.js → chunk-YY3T5AJK.js} +2 -2
  38. package/dist/chunk-YY3T5AJK.js.map +1 -0
  39. package/dist/datasets/index.cjs +16 -16
  40. package/dist/datasets/index.js +1 -1
  41. package/dist/docs/SKILL.md +1 -1
  42. package/dist/docs/assets/SOURCE_MAP.json +320 -320
  43. package/dist/docs/references/reference-observability-tracing-interfaces.md +3 -0
  44. package/dist/evals/index.cjs +19 -19
  45. package/dist/evals/index.js +2 -2
  46. package/dist/evals/scoreTraces/index.cjs +7 -7
  47. package/dist/evals/scoreTraces/index.js +3 -3
  48. package/dist/harness/index.cjs +16 -16
  49. package/dist/harness/index.js +6 -6
  50. package/dist/index.cjs +2 -2
  51. package/dist/index.js +1 -1
  52. package/dist/integration/index.cjs +2 -2
  53. package/dist/integration/index.js +1 -1
  54. package/dist/llm/index.cjs +12 -12
  55. package/dist/llm/index.js +3 -3
  56. package/dist/loop/index.cjs +14 -14
  57. package/dist/loop/index.js +1 -1
  58. package/dist/mastra/index.cjs +2 -2
  59. package/dist/mastra/index.js +1 -1
  60. package/dist/memory/index.cjs +14 -14
  61. package/dist/memory/index.js +1 -1
  62. package/dist/netlify-BFMLDQM5.js +3 -0
  63. package/dist/{netlify-QDVWIV7X.js.map → netlify-BFMLDQM5.js.map} +1 -1
  64. package/dist/netlify-RN36CL4F.cjs +12 -0
  65. package/dist/{netlify-OZA4BKIK.cjs.map → netlify-RN36CL4F.cjs.map} +1 -1
  66. package/dist/observability/index.cjs +17 -17
  67. package/dist/observability/index.js +1 -1
  68. package/dist/observability/types/tracing.d.ts +2 -0
  69. package/dist/observability/types/tracing.d.ts.map +1 -1
  70. package/dist/processor-provider/index.cjs +10 -10
  71. package/dist/processor-provider/index.js +1 -1
  72. package/dist/processors/index.cjs +42 -42
  73. package/dist/processors/index.js +1 -1
  74. package/dist/provider-registry-6FITK73S.js +3 -0
  75. package/dist/{provider-registry-L3ZZWLYW.js.map → provider-registry-6FITK73S.js.map} +1 -1
  76. package/dist/provider-registry-IHJW2WNI.cjs +40 -0
  77. package/dist/{provider-registry-TLYLLTKR.cjs.map → provider-registry-IHJW2WNI.cjs.map} +1 -1
  78. package/dist/relevance/index.cjs +3 -3
  79. package/dist/relevance/index.js +1 -1
  80. package/dist/storage/constants.cjs +56 -56
  81. package/dist/storage/constants.js +1 -1
  82. package/dist/storage/index.cjs +172 -172
  83. package/dist/storage/index.js +2 -2
  84. package/dist/stream/index.cjs +11 -11
  85. package/dist/stream/index.js +2 -2
  86. package/dist/test-utils/llm-mock.cjs +12 -12
  87. package/dist/test-utils/llm-mock.js +3 -3
  88. package/dist/tool-loop-agent/index.cjs +4 -4
  89. package/dist/tool-loop-agent/index.js +1 -1
  90. package/dist/tools/index.cjs +6 -6
  91. package/dist/tools/index.js +1 -1
  92. package/dist/tools/is-vercel-tool.cjs +2 -2
  93. package/dist/tools/is-vercel-tool.js +1 -1
  94. package/dist/tools/tool-builder/builder.d.ts.map +1 -1
  95. package/dist/tools/tool.d.ts +6 -1
  96. package/dist/tools/tool.d.ts.map +1 -1
  97. package/dist/tools/types.d.ts +15 -0
  98. package/dist/tools/types.d.ts.map +1 -1
  99. package/dist/utils.cjs +23 -23
  100. package/dist/utils.js +1 -1
  101. package/dist/vector/index.cjs +9 -9
  102. package/dist/vector/index.js +2 -2
  103. package/dist/workflows/evented/index.cjs +10 -10
  104. package/dist/workflows/evented/index.js +1 -1
  105. package/dist/workflows/index.cjs +24 -24
  106. package/dist/workflows/index.js +1 -1
  107. package/dist/workspace/index.cjs +67 -67
  108. package/dist/workspace/index.js +1 -1
  109. package/package.json +10 -10
  110. package/dist/chunk-2CSKXHM7.cjs.map +0 -1
  111. package/dist/chunk-5FNG2ISL.js.map +0 -1
  112. package/dist/chunk-CDXZJ3PO.cjs.map +0 -1
  113. package/dist/chunk-GQRY6HEY.js.map +0 -1
  114. package/dist/chunk-MIAFERSL.js.map +0 -1
  115. package/dist/chunk-QYYWWS3U.cjs.map +0 -1
  116. package/dist/netlify-OZA4BKIK.cjs +0 -12
  117. package/dist/netlify-QDVWIV7X.js +0 -3
  118. package/dist/provider-registry-L3ZZWLYW.js +0 -3
  119. package/dist/provider-registry-TLYLLTKR.cjs +0 -40
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkCDXZJ3PO_cjs = require('./chunk-CDXZJ3PO.cjs');
3
+ var chunkE7PW4ZAB_cjs = require('./chunk-E7PW4ZAB.cjs');
4
4
  var chunkRO47SMI7_cjs = require('./chunk-RO47SMI7.cjs');
5
5
  var chunk7XAECHYL_cjs = require('./chunk-7XAECHYL.cjs');
6
6
  var nodePath = require('path');
@@ -1597,7 +1597,7 @@ function isLSPAvailable() {
1597
1597
  return jsonrpcModule !== null;
1598
1598
  }
1599
1599
  try {
1600
- const req = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-JNNKF6W5.cjs', document.baseURI).href)));
1600
+ const req = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-QGT2HJGX.cjs', document.baseURI).href)));
1601
1601
  req.resolve("vscode-jsonrpc/node");
1602
1602
  req.resolve("vscode-languageserver-protocol");
1603
1603
  return true;
@@ -1611,7 +1611,7 @@ async function loadLSPDeps() {
1611
1611
  return { ...jsonrpcModule, ...lspProtocolModule };
1612
1612
  }
1613
1613
  try {
1614
- const req = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-JNNKF6W5.cjs', document.baseURI).href)));
1614
+ const req = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-QGT2HJGX.cjs', document.baseURI).href)));
1615
1615
  const jsonrpc = req("vscode-jsonrpc/node");
1616
1616
  const protocol = req("vscode-languageserver-protocol");
1617
1617
  jsonrpcModule = {
@@ -5883,7 +5883,7 @@ function createSkillTools(skills) {
5883
5883
  };
5884
5884
  }
5885
5885
  function createSkillTool(skills) {
5886
- const tool = chunkCDXZJ3PO_cjs.createTool({
5886
+ const tool = chunkE7PW4ZAB_cjs.createTool({
5887
5887
  id: "skill",
5888
5888
  description: "Activate a skill to load its full instructions. You should activate skills proactively when they are relevant to the user's request without asking for permission first.",
5889
5889
  inputSchema: z__default.default.object({
@@ -5921,7 +5921,7 @@ ${skill.assets.map((a) => `- assets/${a}`).join("\n")}`);
5921
5921
  return tool;
5922
5922
  }
5923
5923
  function createSkillSearchTool(skills) {
5924
- const tool = chunkCDXZJ3PO_cjs.createTool({
5924
+ const tool = chunkE7PW4ZAB_cjs.createTool({
5925
5925
  id: "skill_search",
5926
5926
  description: "Search across skill content to find relevant information. Useful when you need to find specific details within skills.",
5927
5927
  inputSchema: z__default.default.object({
@@ -5945,7 +5945,7 @@ ${preview}`;
5945
5945
  return tool;
5946
5946
  }
5947
5947
  function createSkillReadTool(skills) {
5948
- const tool = chunkCDXZJ3PO_cjs.createTool({
5948
+ const tool = chunkE7PW4ZAB_cjs.createTool({
5949
5949
  id: "skill_read",
5950
5950
  description: "Read a file from a skill directory (references, scripts, or assets). The path is relative to the skill root.",
5951
5951
  inputSchema: z__default.default.object({
@@ -6645,7 +6645,7 @@ function isAstGrepAvailable() {
6645
6645
  return astGrepModule !== null;
6646
6646
  }
6647
6647
  try {
6648
- const req = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-JNNKF6W5.cjs', document.baseURI).href)));
6648
+ const req = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-QGT2HJGX.cjs', document.baseURI).href)));
6649
6649
  req.resolve("@ast-grep/napi");
6650
6650
  return true;
6651
6651
  } catch {
@@ -6813,7 +6813,7 @@ function patternReplace(content, root, pattern, replacement) {
6813
6813
  }
6814
6814
  return { content: modifiedContent, count };
6815
6815
  }
6816
- var astEditTool = chunkCDXZJ3PO_cjs.createTool({
6816
+ var astEditTool = chunkE7PW4ZAB_cjs.createTool({
6817
6817
  id: WORKSPACE_TOOLS.FILESYSTEM.AST_EDIT,
6818
6818
  description: `Edit code using AST-based analysis for intelligent transformations.
6819
6819
 
@@ -6929,7 +6929,7 @@ Pattern replace (for everything else):
6929
6929
  return output;
6930
6930
  }
6931
6931
  });
6932
- var deleteFileTool = chunkCDXZJ3PO_cjs.createTool({
6932
+ var deleteFileTool = chunkE7PW4ZAB_cjs.createTool({
6933
6933
  id: WORKSPACE_TOOLS.FILESYSTEM.DELETE,
6934
6934
  description: "Delete a file or directory from the workspace filesystem",
6935
6935
  inputSchema: v4.z.object({
@@ -6951,7 +6951,7 @@ var deleteFileTool = chunkCDXZJ3PO_cjs.createTool({
6951
6951
  return `Deleted ${path7}`;
6952
6952
  }
6953
6953
  });
6954
- var editFileTool = chunkCDXZJ3PO_cjs.createTool({
6954
+ var editFileTool = chunkE7PW4ZAB_cjs.createTool({
6955
6955
  id: WORKSPACE_TOOLS.FILESYSTEM.EDIT_FILE,
6956
6956
  description: `Edit a file by replacing specific text. The old_string must match exactly and be unique in the file.
6957
6957
 
@@ -7210,14 +7210,14 @@ Usage:
7210
7210
  - Always quote file paths that contain spaces (e.g., cd "/path/with spaces").
7211
7211
  - Use the timeout parameter (in seconds) to limit execution time. Behavior when omitted depends on the sandbox provider.
7212
7212
  - Optionally use cwd to override the working directory. Commands run from the sandbox default if omitted.`;
7213
- var executeCommandTool = chunkCDXZJ3PO_cjs.createTool({
7213
+ var executeCommandTool = chunkE7PW4ZAB_cjs.createTool({
7214
7214
  id: WORKSPACE_TOOLS.SANDBOX.EXECUTE_COMMAND,
7215
7215
  description: baseDescription,
7216
7216
  inputSchema: executeCommandInputSchema,
7217
7217
  execute: executeCommand,
7218
7218
  toModelOutput: sandboxToModelOutput
7219
7219
  });
7220
- var executeCommandWithBackgroundTool = chunkCDXZJ3PO_cjs.createTool({
7220
+ var executeCommandWithBackgroundTool = chunkE7PW4ZAB_cjs.createTool({
7221
7221
  id: WORKSPACE_TOOLS.SANDBOX.EXECUTE_COMMAND,
7222
7222
  description: `${baseDescription}
7223
7223
 
@@ -7226,7 +7226,7 @@ Set background: true to run long-running commands (dev servers, watchers) withou
7226
7226
  execute: executeCommand,
7227
7227
  toModelOutput: sandboxToModelOutput
7228
7228
  });
7229
- var fileStatTool = chunkCDXZJ3PO_cjs.createTool({
7229
+ var fileStatTool = chunkE7PW4ZAB_cjs.createTool({
7230
7230
  id: WORKSPACE_TOOLS.FILESYSTEM.FILE_STAT,
7231
7231
  description: "Get file or directory metadata from the workspace. Returns existence, type, size, and modification time.",
7232
7232
  inputSchema: v4.z.object({
@@ -7250,7 +7250,7 @@ var fileStatTool = chunkCDXZJ3PO_cjs.createTool({
7250
7250
  }
7251
7251
  }
7252
7252
  });
7253
- var getProcessOutputTool = chunkCDXZJ3PO_cjs.createTool({
7253
+ var getProcessOutputTool = chunkE7PW4ZAB_cjs.createTool({
7254
7254
  id: WORKSPACE_TOOLS.SANDBOX.GET_PROCESS_OUTPUT,
7255
7255
  description: `Get the current output (stdout, stderr) and status of a background process by its PID.
7256
7256
 
@@ -7348,7 +7348,7 @@ async function loadGitignore(filesystem) {
7348
7348
  }
7349
7349
 
7350
7350
  // src/workspace/tools/grep.ts
7351
- var grepTool = chunkCDXZJ3PO_cjs.createTool({
7351
+ var grepTool = chunkE7PW4ZAB_cjs.createTool({
7352
7352
  id: WORKSPACE_TOOLS.FILESYSTEM.GREP,
7353
7353
  description: `Search file contents using a regex pattern. Walks the filesystem and returns matching lines with file paths and line numbers.
7354
7354
 
@@ -7502,7 +7502,7 @@ Usage:
7502
7502
  );
7503
7503
  }
7504
7504
  });
7505
- var indexContentTool = chunkCDXZJ3PO_cjs.createTool({
7505
+ var indexContentTool = chunkE7PW4ZAB_cjs.createTool({
7506
7506
  id: WORKSPACE_TOOLS.SEARCH.INDEX,
7507
7507
  description: "Index content for search. The path becomes the document ID in search results.",
7508
7508
  inputSchema: v4.z.object({
@@ -7518,7 +7518,7 @@ var indexContentTool = chunkCDXZJ3PO_cjs.createTool({
7518
7518
  }
7519
7519
  });
7520
7520
  var KILL_TAIL_LINES = 50;
7521
- var killProcessTool = chunkCDXZJ3PO_cjs.createTool({
7521
+ var killProcessTool = chunkE7PW4ZAB_cjs.createTool({
7522
7522
  id: WORKSPACE_TOOLS.SANDBOX.KILL_PROCESS,
7523
7523
  description: `Kill a background process by its PID.
7524
7524
 
@@ -7702,7 +7702,7 @@ function joinPath2(base, name) {
7702
7702
  }
7703
7703
 
7704
7704
  // src/workspace/tools/list-files.ts
7705
- var listFilesTool = chunkCDXZJ3PO_cjs.createTool({
7705
+ var listFilesTool = chunkE7PW4ZAB_cjs.createTool({
7706
7706
  id: WORKSPACE_TOOLS.FILESYSTEM.LIST_FILES,
7707
7707
  description: `List files and directories in the workspace filesystem.
7708
7708
  Returns a compact tab-indented listing for efficient token usage.
@@ -7749,7 +7749,7 @@ ${result.summary}`,
7749
7749
  );
7750
7750
  }
7751
7751
  });
7752
- var mkdirTool = chunkCDXZJ3PO_cjs.createTool({
7752
+ var mkdirTool = chunkE7PW4ZAB_cjs.createTool({
7753
7753
  id: WORKSPACE_TOOLS.FILESYSTEM.MKDIR,
7754
7754
  description: "Create a directory in the workspace filesystem",
7755
7755
  inputSchema: v4.z.object({
@@ -7766,7 +7766,7 @@ var mkdirTool = chunkCDXZJ3PO_cjs.createTool({
7766
7766
  return `Created directory ${path7}`;
7767
7767
  }
7768
7768
  });
7769
- var readFileTool = chunkCDXZJ3PO_cjs.createTool({
7769
+ var readFileTool = chunkE7PW4ZAB_cjs.createTool({
7770
7770
  id: WORKSPACE_TOOLS.FILESYSTEM.READ_FILE,
7771
7771
  description: "Read the contents of a file from the workspace filesystem. Use offset/limit parameters to read specific line ranges for large files.",
7772
7772
  inputSchema: v4.z.object({
@@ -7814,7 +7814,7 @@ ${fullContent.toString("base64")}`,
7814
7814
  ${formattedContent}`, tokenLimit, "end");
7815
7815
  }
7816
7816
  });
7817
- var searchTool = chunkCDXZJ3PO_cjs.createTool({
7817
+ var searchTool = chunkE7PW4ZAB_cjs.createTool({
7818
7818
  id: WORKSPACE_TOOLS.SEARCH.SEARCH,
7819
7819
  description: "Search indexed content in the workspace. Supports keyword (BM25), semantic (vector), and hybrid search modes.",
7820
7820
  inputSchema: v4.z.object({
@@ -7841,7 +7841,7 @@ var searchTool = chunkCDXZJ3PO_cjs.createTool({
7841
7841
  return lines.join("\n");
7842
7842
  }
7843
7843
  });
7844
- var writeFileTool = chunkCDXZJ3PO_cjs.createTool({
7844
+ var writeFileTool = chunkE7PW4ZAB_cjs.createTool({
7845
7845
  id: WORKSPACE_TOOLS.FILESYSTEM.WRITE_FILE,
7846
7846
  description: "Write content to a file in the workspace filesystem. Creates parent directories if needed.",
7847
7847
  inputSchema: v4.z.object({
@@ -8083,5 +8083,5 @@ exports.requireWorkspace = requireWorkspace;
8083
8083
  exports.resolveToolConfig = resolveToolConfig;
8084
8084
  exports.searchTool = searchTool;
8085
8085
  exports.writeFileTool = writeFileTool;
8086
- //# sourceMappingURL=chunk-JNNKF6W5.cjs.map
8087
- //# sourceMappingURL=chunk-JNNKF6W5.cjs.map
8086
+ //# sourceMappingURL=chunk-QGT2HJGX.cjs.map
8087
+ //# sourceMappingURL=chunk-QGT2HJGX.cjs.map