@mastra/core 1.24.0-alpha.1 → 1.24.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 +75 -0
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/browser/index.cjs +2 -2
- package/dist/browser/index.js +1 -1
- package/dist/channels/index.cjs +4 -4
- package/dist/channels/index.js +1 -1
- package/dist/{chunk-GAW7WFCY.js → chunk-3P6XSZUF.js} +3 -3
- package/dist/{chunk-GAW7WFCY.js.map → chunk-3P6XSZUF.js.map} +1 -1
- package/dist/{chunk-SUEVJYTA.cjs → chunk-4BKNCJU7.cjs} +185 -185
- package/dist/{chunk-SUEVJYTA.cjs.map → chunk-4BKNCJU7.cjs.map} +1 -1
- package/dist/{chunk-365PDOQ4.cjs → chunk-5FMGGMTA.cjs} +9 -9
- package/dist/{chunk-365PDOQ4.cjs.map → chunk-5FMGGMTA.cjs.map} +1 -1
- package/dist/{chunk-JBFAGOAG.js → chunk-6XE5DGL4.js} +9 -9
- package/dist/{chunk-JBFAGOAG.js.map → chunk-6XE5DGL4.js.map} +1 -1
- package/dist/{chunk-IKUMKFM4.js → chunk-6ZHFLCZD.js} +4 -4
- package/dist/{chunk-IKUMKFM4.js.map → chunk-6ZHFLCZD.js.map} +1 -1
- package/dist/{chunk-V657RNGK.js → chunk-7YGIQZZU.js} +6618 -6680
- package/dist/chunk-7YGIQZZU.js.map +1 -0
- package/dist/{chunk-EJ62D3QH.js → chunk-ADPPBTVG.js} +6 -6
- package/dist/{chunk-EJ62D3QH.js.map → chunk-ADPPBTVG.js.map} +1 -1
- package/dist/{chunk-CY4AMNDV.cjs → chunk-AQXJ6EOF.cjs} +7 -7
- package/dist/{chunk-CY4AMNDV.cjs.map → chunk-AQXJ6EOF.cjs.map} +1 -1
- package/dist/{chunk-MK5IF24D.js → chunk-B5643WMN.js} +3 -3
- package/dist/{chunk-MK5IF24D.js.map → chunk-B5643WMN.js.map} +1 -1
- package/dist/{chunk-PQKSETS5.js → chunk-BRLXMVIG.js} +3 -3
- package/dist/{chunk-PQKSETS5.js.map → chunk-BRLXMVIG.js.map} +1 -1
- package/dist/{chunk-BFOZOAU2.cjs → chunk-F3P6BFYU.cjs} +6630 -6692
- package/dist/chunk-F3P6BFYU.cjs.map +1 -0
- package/dist/{chunk-EAQQP6OK.cjs → chunk-IZQ4UPH5.cjs} +48 -48
- package/dist/{chunk-EAQQP6OK.cjs.map → chunk-IZQ4UPH5.cjs.map} +1 -1
- package/dist/{chunk-B2FQ6L2I.cjs → chunk-KDLCZTD3.cjs} +5 -5
- package/dist/{chunk-B2FQ6L2I.cjs.map → chunk-KDLCZTD3.cjs.map} +1 -1
- package/dist/{chunk-L73KZFX6.cjs → chunk-MJJVDIL7.cjs} +6 -6
- package/dist/{chunk-L73KZFX6.cjs.map → chunk-MJJVDIL7.cjs.map} +1 -1
- package/dist/{chunk-D64ZY3NT.cjs → chunk-N7S3MTPO.cjs} +17 -17
- package/dist/{chunk-D64ZY3NT.cjs.map → chunk-N7S3MTPO.cjs.map} +1 -1
- package/dist/{chunk-3RI7ILBW.js → chunk-PN7CBIVV.js} +3 -3
- package/dist/{chunk-3RI7ILBW.js.map → chunk-PN7CBIVV.js.map} +1 -1
- package/dist/{chunk-XEDVYHBK.cjs → chunk-SDH6X2XL.cjs} +3 -3
- package/dist/chunk-SDH6X2XL.cjs.map +1 -0
- package/dist/{chunk-PCHML5XO.js → chunk-SE7ST47S.js} +5 -5
- package/dist/{chunk-PCHML5XO.js.map → chunk-SE7ST47S.js.map} +1 -1
- package/dist/{chunk-CN6AFOVV.js → chunk-TAJYHQ4N.js} +4 -4
- package/dist/{chunk-CN6AFOVV.js.map → chunk-TAJYHQ4N.js.map} +1 -1
- package/dist/{chunk-LUEXY2QV.js → chunk-TKMPRHAK.js} +3 -3
- package/dist/chunk-TKMPRHAK.js.map +1 -0
- package/dist/{chunk-SYH64AGV.cjs → chunk-V7H57YBW.cjs} +15 -15
- package/dist/{chunk-SYH64AGV.cjs.map → chunk-V7H57YBW.cjs.map} +1 -1
- package/dist/{chunk-FCW225T4.cjs → chunk-XQKBUR5Q.cjs} +77 -77
- package/dist/{chunk-FCW225T4.cjs.map → chunk-XQKBUR5Q.cjs.map} +1 -1
- package/dist/datasets/index.cjs +11 -11
- package/dist/datasets/index.js +1 -1
- package/dist/docs/SKILL.md +5 -1
- package/dist/docs/assets/SOURCE_MAP.json +133 -133
- package/dist/docs/references/docs-editor-overview.md +155 -0
- package/dist/docs/references/docs-editor-prompts.md +71 -0
- package/dist/docs/references/docs-editor-tools.md +152 -0
- package/dist/docs/references/docs-studio-overview.md +2 -0
- package/dist/docs/references/reference-client-js-agents.md +136 -0
- package/dist/docs/references/reference-editor-mastra-editor.md +90 -0
- package/dist/docs/references/reference.md +2 -0
- 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 +20 -20
- package/dist/llm/index.js +5 -5
- package/dist/llm/model/provider-types.generated.d.ts +3129 -3159
- 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/mastra-JEGLT2N7.js +3 -0
- package/dist/{mastra-5YHFXAJO.js.map → mastra-JEGLT2N7.js.map} +1 -1
- package/dist/mastra-JVY5NHTL.cjs +12 -0
- package/dist/{mastra-7CFH7DGM.cjs.map → mastra-JVY5NHTL.cjs.map} +1 -1
- package/dist/memory/index.cjs +19 -19
- package/dist/memory/index.js +1 -1
- package/dist/models-dev-2VN4JSFK.js +3 -0
- package/dist/{models-dev-ZXC3IYLG.js.map → models-dev-2VN4JSFK.js.map} +1 -1
- package/dist/models-dev-IKQIKFSM.cjs +12 -0
- package/dist/{models-dev-X2MWNPAU.cjs.map → models-dev-IKQIKFSM.cjs.map} +1 -1
- package/dist/netlify-JEENQP7S.cjs +12 -0
- package/dist/{netlify-GOILLTQO.cjs.map → netlify-JEENQP7S.cjs.map} +1 -1
- package/dist/netlify-Z6K3THHN.js +3 -0
- package/dist/{netlify-HJL7EXHY.js.map → netlify-Z6K3THHN.js.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-2RFGIGU5.cjs +44 -0
- package/dist/{provider-registry-25ELOB67.cjs.map → provider-registry-2RFGIGU5.cjs.map} +1 -1
- package/dist/provider-registry-DVP23DC2.js +3 -0
- package/dist/{provider-registry-UWTCPEFF.js.map → provider-registry-DVP23DC2.js.map} +1 -1
- package/dist/provider-registry.json +6610 -6672
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/stream/index.cjs +8 -8
- package/dist/stream/index.js +1 -1
- package/dist/tool-loop-agent/index.cjs +4 -4
- package/dist/tool-loop-agent/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 +9 -9
- package/src/llm/model/provider-types.generated.d.ts +3129 -3159
- package/dist/chunk-BFOZOAU2.cjs.map +0 -1
- package/dist/chunk-LUEXY2QV.js.map +0 -1
- package/dist/chunk-V657RNGK.js.map +0 -1
- package/dist/chunk-XEDVYHBK.cjs.map +0 -1
- package/dist/mastra-5YHFXAJO.js +0 -3
- package/dist/mastra-7CFH7DGM.cjs +0 -12
- package/dist/models-dev-X2MWNPAU.cjs +0 -12
- package/dist/models-dev-ZXC3IYLG.js +0 -3
- package/dist/netlify-GOILLTQO.cjs +0 -12
- package/dist/netlify-HJL7EXHY.js +0 -3
- package/dist/provider-registry-25ELOB67.cjs +0 -44
- package/dist/provider-registry-UWTCPEFF.js +0 -3
package/dist/datasets/index.cjs
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMJJVDIL7_cjs = require('../chunk-MJJVDIL7.cjs');
|
|
4
4
|
var chunkSRQR5UN6_cjs = require('../chunk-SRQR5UN6.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "Dataset", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkMJJVDIL7_cjs.Dataset; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "DatasetsManager", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkMJJVDIL7_cjs.DatasetsManager; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "compareExperiments", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkMJJVDIL7_cjs.compareExperiments; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "computeMean", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkMJJVDIL7_cjs.computeMean; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "computeScorerStats", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkMJJVDIL7_cjs.computeScorerStats; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "executeTarget", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkMJJVDIL7_cjs.executeTarget; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "isRegression", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkMJJVDIL7_cjs.isRegression; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "resolveScorers", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkMJJVDIL7_cjs.resolveScorers; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "runExperiment", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkMJJVDIL7_cjs.runExperiment; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "runScorersForItem", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkMJJVDIL7_cjs.runScorersForItem; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "SchemaUpdateValidationError", {
|
|
49
49
|
enumerable: true,
|
package/dist/datasets/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Dataset, DatasetsManager, compareExperiments, computeMean, computeScorerStats, executeTarget, isRegression, resolveScorers, runExperiment, runScorersForItem } from '../chunk-
|
|
1
|
+
export { Dataset, DatasetsManager, compareExperiments, computeMean, computeScorerStats, executeTarget, isRegression, resolveScorers, runExperiment, runScorersForItem } from '../chunk-6ZHFLCZD.js';
|
|
2
2
|
export { SchemaUpdateValidationError, SchemaValidationError, SchemaValidator, createValidator, getSchemaValidator } from '../chunk-7BBERBXP.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-core
|
|
|
3
3
|
description: Documentation for @mastra/core. Use when working with @mastra/core APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/core"
|
|
6
|
-
version: "1.24.0
|
|
6
|
+
version: "1.24.0"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -27,6 +27,9 @@ Read the individual reference documents for detailed explanations and code examp
|
|
|
27
27
|
- [Supervisor agents](references/docs-agents-supervisor-agents.md) - Learn how to coordinate multiple agents with delegation hooks, iteration monitoring, message filtering, and task completion scoring.
|
|
28
28
|
- [Tools](references/docs-agents-using-tools.md) - Learn how to create tools and add them to agents to extend capabilities beyond text generation.
|
|
29
29
|
- [Browser overview](references/docs-browser-overview.md) - Give agents browser control through SDK providers like AgentBrowser and Stagehand.
|
|
30
|
+
- [Editor overview](references/docs-editor-overview.md) - Let non-technical team members iterate on agents, version every change, and run experiments without redeploying.
|
|
31
|
+
- [Prompts](references/docs-editor-prompts.md) - Build reusable, versioned instruction templates with template variables and display conditions.
|
|
32
|
+
- [Tools](references/docs-editor-tools.md) - Add and manage tools from code, integration providers, and MCP servers through the editor.
|
|
30
33
|
- [Custom scorers](references/docs-evals-custom-scorers.md)
|
|
31
34
|
- [Datasets overview](references/docs-evals-datasets-overview.md) - Manage versioned test data, run experiments against agents and workflows, and track results over time.
|
|
32
35
|
- [Running experiments](references/docs-evals-datasets-running-experiments.md) - Run experiments against agents or workflows, with scoring and result tracking.
|
|
@@ -182,6 +185,7 @@ Read the individual reference documents for detailed explanations and code examp
|
|
|
182
185
|
- [Reference: dataset.startExperimentAsync()](references/reference-datasets-startExperimentAsync.md) - Documentation for the `dataset.startExperimentAsync()` method, which starts an experiment asynchronously.
|
|
183
186
|
- [Reference: dataset.update()](references/reference-datasets-update.md) - Documentation for the `dataset.update()` method, which updates dataset metadata and schemas.
|
|
184
187
|
- [Reference: dataset.updateItem()](references/reference-datasets-updateItem.md) - Documentation for the `dataset.updateItem()` method, which updates an existing item in a dataset.
|
|
188
|
+
- [Reference: MastraEditor class](references/reference-editor-mastra-editor.md) - Documentation for the MastraEditor class, the entry point for configuring the Mastra agent editor.
|
|
185
189
|
- [Reference: Answer relevancy scorer](references/reference-evals-answer-relevancy.md) - Documentation for the Answer Relevancy Scorer in Mastra, which evaluates how well LLM outputs address the input query.
|
|
186
190
|
- [Reference: Answer similarity scorer](references/reference-evals-answer-similarity.md) - Documentation for the Answer Similarity Scorer in Mastra, which compares agent outputs against ground truth answers for CI/CD testing.
|
|
187
191
|
- [Reference: Bias scorer](references/reference-evals-bias.md) - Documentation for the Bias Scorer in Mastra, which evaluates LLM outputs for various forms of bias, including gender, political, racial/ethnic, or geographical bias.
|