@mastra/core 1.17.0-alpha.2 → 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.
- package/CHANGELOG.md +88 -0
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/{chunk-ZT26XXEB.js → chunk-3DDJ33AU.js} +5 -5
- package/dist/{chunk-ZT26XXEB.js.map → chunk-3DDJ33AU.js.map} +1 -1
- package/dist/{chunk-I2Z4GKQ6.cjs → chunk-3ECYXW43.cjs} +16 -16
- package/dist/{chunk-I2Z4GKQ6.cjs.map → chunk-3ECYXW43.cjs.map} +1 -1
- package/dist/{chunk-SDSIVJMT.cjs → chunk-3H34KWBU.cjs} +9 -9
- package/dist/{chunk-SDSIVJMT.cjs.map → chunk-3H34KWBU.cjs.map} +1 -1
- package/dist/{chunk-P54SNCAD.cjs → chunk-3LH5QX5F.cjs} +3 -3
- package/dist/{chunk-P54SNCAD.cjs.map → chunk-3LH5QX5F.cjs.map} +1 -1
- package/dist/{chunk-OBHOUEDZ.cjs → chunk-7CDFI4GW.cjs} +84 -84
- package/dist/{chunk-OBHOUEDZ.cjs.map → chunk-7CDFI4GW.cjs.map} +1 -1
- package/dist/{chunk-PTRJHO2K.cjs → chunk-A5JHKGFY.cjs} +7 -7
- package/dist/{chunk-PTRJHO2K.cjs.map → chunk-A5JHKGFY.cjs.map} +1 -1
- package/dist/{chunk-O54IMECL.cjs → chunk-AEIPJW4F.cjs} +185 -185
- package/dist/{chunk-O54IMECL.cjs.map → chunk-AEIPJW4F.cjs.map} +1 -1
- package/dist/{chunk-UOCBF4IP.js → chunk-AIEKKCJ7.js} +3 -3
- package/dist/{chunk-UOCBF4IP.js.map → chunk-AIEKKCJ7.js.map} +1 -1
- package/dist/{chunk-K76OKOAK.js → chunk-AIYWGXK7.js} +3 -3
- package/dist/{chunk-K76OKOAK.js.map → chunk-AIYWGXK7.js.map} +1 -1
- package/dist/{chunk-R47HLGU7.cjs → chunk-BHVF4Z5D.cjs} +39 -39
- package/dist/{chunk-R47HLGU7.cjs.map → chunk-BHVF4Z5D.cjs.map} +1 -1
- package/dist/{chunk-X234OVG3.js → chunk-BIB2LCIR.js} +4 -4
- package/dist/{chunk-X234OVG3.js.map → chunk-BIB2LCIR.js.map} +1 -1
- package/dist/{chunk-MNIWCQYZ.js → chunk-CYQ2TNSK.js} +3 -3
- package/dist/{chunk-MNIWCQYZ.js.map → chunk-CYQ2TNSK.js.map} +1 -1
- package/dist/{chunk-ID5X55KA.cjs → chunk-DL4A7URO.cjs} +5 -5
- package/dist/{chunk-ID5X55KA.cjs.map → chunk-DL4A7URO.cjs.map} +1 -1
- package/dist/{chunk-76NWBCBU.cjs → chunk-DV7FIKOO.cjs} +10 -10
- package/dist/{chunk-76NWBCBU.cjs.map → chunk-DV7FIKOO.cjs.map} +1 -1
- package/dist/{chunk-FLW4344C.js → chunk-F7YLMJSQ.js} +4 -4
- package/dist/{chunk-FLW4344C.js.map → chunk-F7YLMJSQ.js.map} +1 -1
- package/dist/{chunk-LOGX3EQD.js → chunk-FWDG2WUV.js} +3 -3
- package/dist/{chunk-LOGX3EQD.js.map → chunk-FWDG2WUV.js.map} +1 -1
- package/dist/{chunk-JMYTEYXJ.js → chunk-JEEYINIB.js} +5 -5
- package/dist/{chunk-JMYTEYXJ.js.map → chunk-JEEYINIB.js.map} +1 -1
- package/dist/{chunk-5TKRQNGW.js → chunk-KMVGT2JI.js} +3 -3
- package/dist/{chunk-5TKRQNGW.js.map → chunk-KMVGT2JI.js.map} +1 -1
- package/dist/{chunk-PQ4CVQXD.cjs → chunk-MBJ6IAKF.cjs} +6 -6
- package/dist/{chunk-PQ4CVQXD.cjs.map → chunk-MBJ6IAKF.cjs.map} +1 -1
- package/dist/{chunk-PICHLY3C.js → chunk-P2C4NFMY.js} +4 -4
- package/dist/{chunk-PICHLY3C.js.map → chunk-P2C4NFMY.js.map} +1 -1
- package/dist/{chunk-AH2ZNH4Y.cjs → chunk-R2V6BCYX.cjs} +3 -3
- package/dist/{chunk-AH2ZNH4Y.cjs.map → chunk-R2V6BCYX.cjs.map} +1 -1
- package/dist/{chunk-XTN63GKI.cjs → chunk-SLG7AUBK.cjs} +7 -7
- package/dist/{chunk-XTN63GKI.cjs.map → chunk-SLG7AUBK.cjs.map} +1 -1
- package/dist/{chunk-AX5EPGND.cjs → chunk-TG4U3K3I.cjs} +51 -51
- package/dist/{chunk-AX5EPGND.cjs.map → chunk-TG4U3K3I.cjs.map} +1 -1
- package/dist/{chunk-6HSR64XA.cjs → chunk-V54LY5HR.cjs} +5 -5
- package/dist/{chunk-6HSR64XA.cjs.map → chunk-V54LY5HR.cjs.map} +1 -1
- package/dist/{chunk-E7L2JB4A.js → chunk-YFYB3Q5L.js} +9 -9
- package/dist/{chunk-E7L2JB4A.js.map → chunk-YFYB3Q5L.js.map} +1 -1
- package/dist/{chunk-YBNI2A6Y.js → chunk-YXNO6AHV.js} +9 -9
- package/dist/{chunk-YBNI2A6Y.js.map → chunk-YXNO6AHV.js.map} +1 -1
- package/dist/{chunk-4UTQD6B5.js → chunk-ZOJZL62I.js} +3 -3
- package/dist/{chunk-4UTQD6B5.js.map → chunk-ZOJZL62I.js.map} +1 -1
- package/dist/{chunk-OIZT4TON.js → chunk-ZOPIN73X.js} +8 -8
- package/dist/{chunk-OIZT4TON.js.map → chunk-ZOPIN73X.js.map} +1 -1
- package/dist/datasets/index.cjs +17 -17
- package/dist/datasets/index.js +2 -2
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +195 -195
- package/dist/evals/index.cjs +5 -5
- package/dist/evals/index.js +2 -2
- package/dist/evals/scoreTraces/index.cjs +3 -3
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/harness/index.cjs +7 -7
- package/dist/harness/index.js +5 -5
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/llm/index.cjs +16 -16
- package/dist/llm/index.js +5 -5
- package/dist/loop/index.cjs +14 -14
- package/dist/loop/index.js +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +14 -14
- package/dist/memory/index.js +1 -1
- package/dist/models-dev-JEMMVJFN.js +3 -0
- package/dist/{models-dev-DYILKQKY.js.map → models-dev-JEMMVJFN.js.map} +1 -1
- package/dist/models-dev-MU7QGI4O.cjs +12 -0
- package/dist/{models-dev-EX67IAAF.cjs.map → models-dev-MU7QGI4O.cjs.map} +1 -1
- package/dist/netlify-BROEKRZF.js +3 -0
- package/dist/{netlify-RQLBHLLX.js.map → netlify-BROEKRZF.js.map} +1 -1
- package/dist/netlify-GOEIG6IC.cjs +12 -0
- package/dist/{netlify-EDK4WKCW.cjs.map → netlify-GOEIG6IC.cjs.map} +1 -1
- package/dist/processor-provider/index.cjs +10 -10
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +44 -44
- package/dist/processors/index.js +1 -1
- package/dist/provider-registry-CKFMYEBK.cjs +40 -0
- package/dist/{provider-registry-MBXOBTD4.cjs.map → provider-registry-CKFMYEBK.cjs.map} +1 -1
- package/dist/provider-registry-P7EMCVJI.js +3 -0
- package/dist/{provider-registry-3RCP7DTQ.js.map → provider-registry-P7EMCVJI.js.map} +1 -1
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/storage/index.cjs +74 -74
- package/dist/storage/index.js +1 -1
- package/dist/stream/index.cjs +8 -8
- package/dist/stream/index.js +1 -1
- package/dist/test-utils/llm-mock.cjs +4 -4
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/tool-loop-agent/index.cjs +4 -4
- package/dist/tool-loop-agent/index.js +1 -1
- package/dist/utils.cjs +23 -23
- package/dist/utils.js +1 -1
- package/dist/vector/index.cjs +7 -7
- package/dist/vector/index.js +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +24 -24
- package/dist/workflows/index.js +1 -1
- package/package.json +6 -6
- package/dist/models-dev-DYILKQKY.js +0 -3
- package/dist/models-dev-EX67IAAF.cjs +0 -12
- package/dist/netlify-EDK4WKCW.cjs +0 -12
- package/dist/netlify-RQLBHLLX.js +0 -3
- package/dist/provider-registry-3RCP7DTQ.js +0 -3
- package/dist/provider-registry-MBXOBTD4.cjs +0 -40
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,93 @@
|
|
|
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
|
+
|
|
45
|
+
## 1.17.0
|
|
46
|
+
|
|
47
|
+
### Minor Changes
|
|
48
|
+
|
|
49
|
+
- Add `lsp_inspect` tool for LSP-based code inspection with hover, definition, and implementation queries ([#14565](https://github.com/mastra-ai/mastra/pull/14565))
|
|
50
|
+
|
|
51
|
+
- Added `disableBuiltinTools` to `HarnessConfig` so you can disable specific built-in harness tools. ([#14227](https://github.com/mastra-ai/mastra/pull/14227))
|
|
52
|
+
|
|
53
|
+
Example:
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
new Harness({ disableBuiltinTools: ['submit_plan', 'subagent'] });
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
- 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))
|
|
60
|
+
|
|
61
|
+
**Example**
|
|
62
|
+
|
|
63
|
+
```typescript
|
|
64
|
+
import { SkillSearchProcessor } from '@mastra/core/processors';
|
|
65
|
+
|
|
66
|
+
const skillSearch = new SkillSearchProcessor({
|
|
67
|
+
workspace,
|
|
68
|
+
search: { topK: 5 },
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
const agent = new Agent({
|
|
72
|
+
workspace,
|
|
73
|
+
inputProcessors: [skillSearch],
|
|
74
|
+
});
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Patch Changes
|
|
78
|
+
|
|
79
|
+
- Update provider registry and model documentation with latest models and providers ([`dc514a8`](https://github.com/mastra-ai/mastra/commit/dc514a83dba5f719172dddfd2c7b858e4943d067))
|
|
80
|
+
|
|
81
|
+
- Fixed `Harness.listThreads()` so callers can request threads across all resources. ([#14690](https://github.com/mastra-ai/mastra/pull/14690))
|
|
82
|
+
|
|
83
|
+
- The internal architecture of observational memory has been refactored. The public API and behavior remain unchanged. ([#14453](https://github.com/mastra-ai/mastra/pull/14453))
|
|
84
|
+
|
|
85
|
+
- 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))
|
|
86
|
+
|
|
87
|
+
- Improved the Loaded AGENTS.md reminder in the TUI so it uses the new bordered notice style and collapses long reminder content by default. ([#14637](https://github.com/mastra-ai/mastra/pull/14637))
|
|
88
|
+
|
|
89
|
+
- 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))
|
|
90
|
+
|
|
3
91
|
## 1.17.0-alpha.2
|
|
4
92
|
|
|
5
93
|
### Minor Changes
|
package/dist/agent/index.cjs
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
10
|
+
get: function () { return chunkBHVF4Z5D_cjs.Agent; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "TripWire", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkBHVF4Z5D_cjs.TripWire; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "isSupportedLanguageModel", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkBHVF4Z5D_cjs.isSupportedLanguageModel; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "resolveThreadIdFromArgs", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkBHVF4Z5D_cjs.resolveThreadIdFromArgs; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "supportedLanguageModelSpecifications", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkBHVF4Z5D_cjs.supportedLanguageModelSpecifications; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "tryGenerateWithJsonFallback", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkBHVF4Z5D_cjs.tryGenerateWithJsonFallback; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "tryStreamWithJsonFallback", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkBHVF4Z5D_cjs.tryStreamWithJsonFallback; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "MessageList", {
|
|
37
37
|
enumerable: true,
|
package/dist/agent/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Agent, TripWire, isSupportedLanguageModel, resolveThreadIdFromArgs, supportedLanguageModelSpecifications, tryGenerateWithJsonFallback, tryStreamWithJsonFallback } from '../chunk-
|
|
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,7 +1,7 @@
|
|
|
1
|
-
import { validateAndSaveScore } from './chunk-
|
|
2
|
-
import { isSupportedLanguageModel } from './chunk-
|
|
3
|
-
import { MastraError } from './chunk-FJEVLHJT.js';
|
|
1
|
+
import { validateAndSaveScore } from './chunk-KMVGT2JI.js';
|
|
2
|
+
import { isSupportedLanguageModel } from './chunk-ZOPIN73X.js';
|
|
4
3
|
import { RequestContext } from './chunk-JGOH7RWL.js';
|
|
4
|
+
import { MastraError } from './chunk-FJEVLHJT.js';
|
|
5
5
|
import { isZodType } from '@mastra/schema-compat';
|
|
6
6
|
import { zodToJsonSchema } from '@mastra/schema-compat/zod-to-json';
|
|
7
7
|
|
|
@@ -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-
|
|
1318
|
-
//# sourceMappingURL=chunk-
|
|
1317
|
+
//# sourceMappingURL=chunk-3DDJ33AU.js.map
|
|
1318
|
+
//# sourceMappingURL=chunk-3DDJ33AU.js.map
|