@mastra/core 1.17.0 → 1.18.0-alpha.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 (103) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/agent/index.cjs +8 -8
  3. package/dist/agent/index.js +1 -1
  4. package/dist/{chunk-CVG4K4O3.js → chunk-3DDJ33AU.js} +4 -4
  5. package/dist/{chunk-CVG4K4O3.js.map → chunk-3DDJ33AU.js.map} +1 -1
  6. package/dist/{chunk-O2BVR6WC.cjs → chunk-3ECYXW43.cjs} +17 -17
  7. package/dist/{chunk-O2BVR6WC.cjs.map → chunk-3ECYXW43.cjs.map} +1 -1
  8. package/dist/{chunk-BKXCVT72.cjs → chunk-3LH5QX5F.cjs} +3 -3
  9. package/dist/chunk-3LH5QX5F.cjs.map +1 -0
  10. package/dist/{chunk-I7S3ZFOU.cjs → chunk-7CDFI4GW.cjs} +76 -76
  11. package/dist/{chunk-I7S3ZFOU.cjs.map → chunk-7CDFI4GW.cjs.map} +1 -1
  12. package/dist/{chunk-ZOZHH547.cjs → chunk-A5JHKGFY.cjs} +7 -7
  13. package/dist/{chunk-ZOZHH547.cjs.map → chunk-A5JHKGFY.cjs.map} +1 -1
  14. package/dist/{chunk-FQMFXIUQ.cjs → chunk-AEIPJW4F.cjs} +185 -185
  15. package/dist/{chunk-FQMFXIUQ.cjs.map → chunk-AEIPJW4F.cjs.map} +1 -1
  16. package/dist/{chunk-DIWGRQZT.js → chunk-AIEKKCJ7.js} +3 -3
  17. package/dist/chunk-AIEKKCJ7.js.map +1 -0
  18. package/dist/{chunk-62GLEYP6.js → chunk-AIYWGXK7.js} +3 -3
  19. package/dist/{chunk-62GLEYP6.js.map → chunk-AIYWGXK7.js.map} +1 -1
  20. package/dist/{chunk-QLC3UBDY.cjs → chunk-BHVF4Z5D.cjs} +12 -12
  21. package/dist/{chunk-QLC3UBDY.cjs.map → chunk-BHVF4Z5D.cjs.map} +1 -1
  22. package/dist/{chunk-IOKPS5RD.js → chunk-BIB2LCIR.js} +4 -4
  23. package/dist/{chunk-IOKPS5RD.js.map → chunk-BIB2LCIR.js.map} +1 -1
  24. package/dist/{chunk-XWGZAY4F.cjs → chunk-DL4A7URO.cjs} +5 -5
  25. package/dist/{chunk-XWGZAY4F.cjs.map → chunk-DL4A7URO.cjs.map} +1 -1
  26. package/dist/{chunk-OXH67SS4.cjs → chunk-DV7FIKOO.cjs} +10 -10
  27. package/dist/{chunk-OXH67SS4.cjs.map → chunk-DV7FIKOO.cjs.map} +1 -1
  28. package/dist/{chunk-IPINMJOH.js → chunk-F7YLMJSQ.js} +4 -4
  29. package/dist/{chunk-IPINMJOH.js.map → chunk-F7YLMJSQ.js.map} +1 -1
  30. package/dist/{chunk-RUUHBB7U.js → chunk-JEEYINIB.js} +3 -3
  31. package/dist/{chunk-RUUHBB7U.js.map → chunk-JEEYINIB.js.map} +1 -1
  32. package/dist/{chunk-DGBPIUTG.js → chunk-KMVGT2JI.js} +3 -3
  33. package/dist/{chunk-DGBPIUTG.js.map → chunk-KMVGT2JI.js.map} +1 -1
  34. package/dist/{chunk-RX5ZKTWD.js → chunk-P2C4NFMY.js} +4 -4
  35. package/dist/{chunk-RX5ZKTWD.js.map → chunk-P2C4NFMY.js.map} +1 -1
  36. package/dist/{chunk-EWGUU5QC.cjs → chunk-SLG7AUBK.cjs} +6 -6
  37. package/dist/{chunk-EWGUU5QC.cjs.map → chunk-SLG7AUBK.cjs.map} +1 -1
  38. package/dist/{chunk-YE2NPWVL.cjs → chunk-TG4U3K3I.cjs} +48 -48
  39. package/dist/{chunk-YE2NPWVL.cjs.map → chunk-TG4U3K3I.cjs.map} +1 -1
  40. package/dist/{chunk-TPJSYHLC.cjs → chunk-V54LY5HR.cjs} +5 -5
  41. package/dist/{chunk-TPJSYHLC.cjs.map → chunk-V54LY5HR.cjs.map} +1 -1
  42. package/dist/{chunk-J2BSGWLR.js → chunk-YFYB3Q5L.js} +10 -10
  43. package/dist/{chunk-J2BSGWLR.js.map → chunk-YFYB3Q5L.js.map} +1 -1
  44. package/dist/{chunk-KFYDUUVH.js → chunk-YXNO6AHV.js} +7 -7
  45. package/dist/{chunk-KFYDUUVH.js.map → chunk-YXNO6AHV.js.map} +1 -1
  46. package/dist/{chunk-IYSW4VN7.js → chunk-ZOPIN73X.js} +4 -4
  47. package/dist/{chunk-IYSW4VN7.js.map → chunk-ZOPIN73X.js.map} +1 -1
  48. package/dist/datasets/index.cjs +11 -11
  49. package/dist/datasets/index.js +1 -1
  50. package/dist/docs/SKILL.md +1 -1
  51. package/dist/docs/assets/SOURCE_MAP.json +122 -122
  52. package/dist/evals/index.cjs +5 -5
  53. package/dist/evals/index.js +2 -2
  54. package/dist/evals/scoreTraces/index.cjs +3 -3
  55. package/dist/evals/scoreTraces/index.js +1 -1
  56. package/dist/harness/index.cjs +7 -7
  57. package/dist/harness/index.js +5 -5
  58. package/dist/index.cjs +2 -2
  59. package/dist/index.js +1 -1
  60. package/dist/llm/index.cjs +16 -16
  61. package/dist/llm/index.js +5 -5
  62. package/dist/loop/index.cjs +14 -14
  63. package/dist/loop/index.js +1 -1
  64. package/dist/mastra/index.cjs +2 -2
  65. package/dist/mastra/index.js +1 -1
  66. package/dist/memory/index.cjs +14 -14
  67. package/dist/memory/index.js +1 -1
  68. package/dist/models-dev-JEMMVJFN.js +3 -0
  69. package/dist/{models-dev-U3LBEE4O.js.map → models-dev-JEMMVJFN.js.map} +1 -1
  70. package/dist/models-dev-MU7QGI4O.cjs +12 -0
  71. package/dist/{models-dev-3UNU47HO.cjs.map → models-dev-MU7QGI4O.cjs.map} +1 -1
  72. package/dist/netlify-BROEKRZF.js +3 -0
  73. package/dist/{netlify-QVXFSZJQ.js.map → netlify-BROEKRZF.js.map} +1 -1
  74. package/dist/netlify-GOEIG6IC.cjs +12 -0
  75. package/dist/{netlify-ET5JT5FX.cjs.map → netlify-GOEIG6IC.cjs.map} +1 -1
  76. package/dist/processor-provider/index.cjs +10 -10
  77. package/dist/processor-provider/index.js +1 -1
  78. package/dist/processors/index.cjs +44 -44
  79. package/dist/processors/index.js +1 -1
  80. package/dist/provider-registry-CKFMYEBK.cjs +40 -0
  81. package/dist/{provider-registry-S6VYJ3GX.cjs.map → provider-registry-CKFMYEBK.cjs.map} +1 -1
  82. package/dist/provider-registry-P7EMCVJI.js +3 -0
  83. package/dist/{provider-registry-IP3K4FE4.js.map → provider-registry-P7EMCVJI.js.map} +1 -1
  84. package/dist/relevance/index.cjs +3 -3
  85. package/dist/relevance/index.js +1 -1
  86. package/dist/stream/index.cjs +8 -8
  87. package/dist/stream/index.js +1 -1
  88. package/dist/tool-loop-agent/index.cjs +4 -4
  89. package/dist/tool-loop-agent/index.js +1 -1
  90. package/dist/workflows/evented/index.cjs +10 -10
  91. package/dist/workflows/evented/index.js +1 -1
  92. package/dist/workflows/index.cjs +24 -24
  93. package/dist/workflows/index.js +1 -1
  94. package/package.json +4 -4
  95. package/dist/chunk-BKXCVT72.cjs.map +0 -1
  96. package/dist/chunk-DIWGRQZT.js.map +0 -1
  97. package/dist/models-dev-3UNU47HO.cjs +0 -12
  98. package/dist/models-dev-U3LBEE4O.js +0 -3
  99. package/dist/netlify-ET5JT5FX.cjs +0 -12
  100. package/dist/netlify-QVXFSZJQ.js +0 -3
  101. package/dist/provider-registry-IP3K4FE4.js +0 -3
  102. package/dist/provider-registry-S6VYJ3GX.cjs +0 -40
  103. package/test-utils/llm-mock.d.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # @mastra/core
2
2
 
3
+ ## 1.18.0-alpha.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Add `lsp_inspect` tool for LSP-based code inspection with hover, definition, and implementation queries ([#14565](https://github.com/mastra-ai/mastra/pull/14565))
8
+
9
+ - Added `disableBuiltinTools` to `HarnessConfig` so you can disable specific built-in harness tools. ([#14227](https://github.com/mastra-ai/mastra/pull/14227))
10
+
11
+ Example:
12
+
13
+ ```ts
14
+ new Harness({ disableBuiltinTools: ['submit_plan', 'subagent'] });
15
+ ```
16
+
17
+ - Added SkillSearchProcessor for on-demand skill discovery. Instead of injecting all skill metadata upfront, agents get `search_skills` and `load_skill` meta-tools to find and load skills on demand with thread-scoped state and TTL cleanup. ([#14596](https://github.com/mastra-ai/mastra/pull/14596))
18
+
19
+ **Example**
20
+
21
+ ```typescript
22
+ import { SkillSearchProcessor } from '@mastra/core/processors';
23
+
24
+ const skillSearch = new SkillSearchProcessor({
25
+ workspace,
26
+ search: { topK: 5 },
27
+ });
28
+
29
+ const agent = new Agent({
30
+ workspace,
31
+ inputProcessors: [skillSearch],
32
+ });
33
+ ```
34
+
35
+ ### Patch Changes
36
+
37
+ - Update provider registry and model documentation with latest models and providers ([`dc514a8`](https://github.com/mastra-ai/mastra/commit/dc514a83dba5f719172dddfd2c7b858e4943d067))
38
+
39
+ - Fixed `Harness.listThreads()` so callers can request threads across all resources. ([#14690](https://github.com/mastra-ai/mastra/pull/14690))
40
+
41
+ - Fixed Harness `stateSchema` typing to accept Zod schemas with `.default()`, `.optional()`, and `.transform()` modifiers. Previously, these modifiers caused TypeScript errors because the type system forced schema Input and Output types to be identical. Now `stateSchema` correctly accepts any schema regardless of input type divergence. ([#14606](https://github.com/mastra-ai/mastra/pull/14606))
42
+
43
+ - Fixed tool input validation failures not producing observability spans. When input schema validation failed, no TOOL_CALL span was created because span creation happened inside the execution function that ran after validation. Moved span creation before input validation so validation errors are now captured in spans and visible in observability backends like Datadog. ([#14677](https://github.com/mastra-ai/mastra/pull/14677))
44
+
3
45
  ## 1.17.0
4
46
 
5
47
  ### Minor Changes
@@ -1,37 +1,37 @@
1
1
  'use strict';
2
2
 
3
- var chunkQLC3UBDY_cjs = require('../chunk-QLC3UBDY.cjs');
3
+ var chunkBHVF4Z5D_cjs = require('../chunk-BHVF4Z5D.cjs');
4
4
  var chunkANLO4VM2_cjs = require('../chunk-ANLO4VM2.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Agent", {
9
9
  enumerable: true,
10
- get: function () { return chunkQLC3UBDY_cjs.Agent; }
10
+ get: function () { return chunkBHVF4Z5D_cjs.Agent; }
11
11
  });
12
12
  Object.defineProperty(exports, "TripWire", {
13
13
  enumerable: true,
14
- get: function () { return chunkQLC3UBDY_cjs.TripWire; }
14
+ get: function () { return chunkBHVF4Z5D_cjs.TripWire; }
15
15
  });
16
16
  Object.defineProperty(exports, "isSupportedLanguageModel", {
17
17
  enumerable: true,
18
- get: function () { return chunkQLC3UBDY_cjs.isSupportedLanguageModel; }
18
+ get: function () { return chunkBHVF4Z5D_cjs.isSupportedLanguageModel; }
19
19
  });
20
20
  Object.defineProperty(exports, "resolveThreadIdFromArgs", {
21
21
  enumerable: true,
22
- get: function () { return chunkQLC3UBDY_cjs.resolveThreadIdFromArgs; }
22
+ get: function () { return chunkBHVF4Z5D_cjs.resolveThreadIdFromArgs; }
23
23
  });
24
24
  Object.defineProperty(exports, "supportedLanguageModelSpecifications", {
25
25
  enumerable: true,
26
- get: function () { return chunkQLC3UBDY_cjs.supportedLanguageModelSpecifications; }
26
+ get: function () { return chunkBHVF4Z5D_cjs.supportedLanguageModelSpecifications; }
27
27
  });
28
28
  Object.defineProperty(exports, "tryGenerateWithJsonFallback", {
29
29
  enumerable: true,
30
- get: function () { return chunkQLC3UBDY_cjs.tryGenerateWithJsonFallback; }
30
+ get: function () { return chunkBHVF4Z5D_cjs.tryGenerateWithJsonFallback; }
31
31
  });
32
32
  Object.defineProperty(exports, "tryStreamWithJsonFallback", {
33
33
  enumerable: true,
34
- get: function () { return chunkQLC3UBDY_cjs.tryStreamWithJsonFallback; }
34
+ get: function () { return chunkBHVF4Z5D_cjs.tryStreamWithJsonFallback; }
35
35
  });
36
36
  Object.defineProperty(exports, "MessageList", {
37
37
  enumerable: true,
@@ -1,4 +1,4 @@
1
- export { Agent, TripWire, isSupportedLanguageModel, resolveThreadIdFromArgs, supportedLanguageModelSpecifications, tryGenerateWithJsonFallback, tryStreamWithJsonFallback } from '../chunk-IYSW4VN7.js';
1
+ export { Agent, TripWire, isSupportedLanguageModel, resolveThreadIdFromArgs, supportedLanguageModelSpecifications, tryGenerateWithJsonFallback, tryStreamWithJsonFallback } from '../chunk-ZOPIN73X.js';
2
2
  export { MessageList, TypeDetector, aiV5ModelMessageToV2PromptMessage, convertMessages } from '../chunk-SLZ3WO42.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- import { validateAndSaveScore } from './chunk-DGBPIUTG.js';
2
- import { isSupportedLanguageModel } from './chunk-IYSW4VN7.js';
1
+ import { validateAndSaveScore } from './chunk-KMVGT2JI.js';
2
+ import { isSupportedLanguageModel } from './chunk-ZOPIN73X.js';
3
3
  import { RequestContext } from './chunk-JGOH7RWL.js';
4
4
  import { MastraError } from './chunk-FJEVLHJT.js';
5
5
  import { isZodType } from '@mastra/schema-compat';
@@ -1314,5 +1314,5 @@ var DatasetsManager = class {
1314
1314
  };
1315
1315
 
1316
1316
  export { Dataset, DatasetsManager, compareExperiments, computeMean, computeScorerStats, executeTarget, isRegression, resolveScorers, runExperiment, runScorersForItem };
1317
- //# sourceMappingURL=chunk-CVG4K4O3.js.map
1318
- //# sourceMappingURL=chunk-CVG4K4O3.js.map
1317
+ //# sourceMappingURL=chunk-3DDJ33AU.js.map
1318
+ //# sourceMappingURL=chunk-3DDJ33AU.js.map