@mastra/core 1.16.0-alpha.0 → 1.16.0-alpha.1
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 +22 -0
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/{chunk-DQDA2GAF.js → chunk-2RY3SPHJ.js} +3 -3
- package/dist/{chunk-DQDA2GAF.js.map → chunk-2RY3SPHJ.js.map} +1 -1
- package/dist/{chunk-5QV7Z7XH.js → chunk-5J2S47MC.js} +4 -3
- package/dist/chunk-5J2S47MC.js.map +1 -0
- package/dist/{chunk-3SDR4BWW.js → chunk-7FDGHLER.js} +2 -2
- package/dist/{chunk-3SDR4BWW.js.map → chunk-7FDGHLER.js.map} +1 -1
- package/dist/{chunk-PQWKSCWD.js → chunk-7SECSD2V.js} +10 -7
- package/dist/chunk-7SECSD2V.js.map +1 -0
- package/dist/{chunk-6W6AOWKN.cjs → chunk-B7YCF3H4.cjs} +75 -75
- package/dist/{chunk-6W6AOWKN.cjs.map → chunk-B7YCF3H4.cjs.map} +1 -1
- package/dist/{chunk-R5IZY5AI.cjs → chunk-BS6WLONR.cjs} +185 -185
- package/dist/{chunk-R5IZY5AI.cjs.map → chunk-BS6WLONR.cjs.map} +1 -1
- package/dist/{chunk-57NZ23ZE.cjs → chunk-FCK6EQS2.cjs} +2 -2
- package/dist/{chunk-57NZ23ZE.cjs.map → chunk-FCK6EQS2.cjs.map} +1 -1
- package/dist/{chunk-H2KIHE4I.cjs → chunk-GE543YYB.cjs} +13 -11
- package/dist/chunk-GE543YYB.cjs.map +1 -0
- package/dist/{chunk-NMVEVERK.js → chunk-GISASUBW.js} +3 -3
- package/dist/{chunk-NMVEVERK.js.map → chunk-GISASUBW.js.map} +1 -1
- package/dist/{chunk-XHXYXSH7.js → chunk-HE6XAPHW.js} +4 -4
- package/dist/{chunk-XHXYXSH7.js.map → chunk-HE6XAPHW.js.map} +1 -1
- package/dist/{chunk-3IACFBML.js → chunk-HIBJ4MJL.js} +3 -3
- package/dist/{chunk-3IACFBML.js.map → chunk-HIBJ4MJL.js.map} +1 -1
- package/dist/{chunk-P3Z47LFL.cjs → chunk-HW4ZWSSM.cjs} +7 -7
- package/dist/{chunk-P3Z47LFL.cjs.map → chunk-HW4ZWSSM.cjs.map} +1 -1
- package/dist/{chunk-XIC3EDT4.cjs → chunk-LKZYOYEA.cjs} +3 -3
- package/dist/{chunk-XIC3EDT4.cjs.map → chunk-LKZYOYEA.cjs.map} +1 -1
- package/dist/{chunk-A5LEVLFM.js → chunk-M7SQZRKA.js} +4 -4
- package/dist/{chunk-A5LEVLFM.js.map → chunk-M7SQZRKA.js.map} +1 -1
- package/dist/{chunk-VAPRBIHM.js → chunk-MURFVPT6.js} +12 -10
- package/dist/chunk-MURFVPT6.js.map +1 -0
- package/dist/{chunk-HQH3FILI.js → chunk-NOPFFKE3.js} +4 -4
- package/dist/{chunk-HQH3FILI.js.map → chunk-NOPFFKE3.js.map} +1 -1
- package/dist/{chunk-7QYYD3UW.js → chunk-RDYTHJAG.js} +6 -6
- package/dist/{chunk-7QYYD3UW.js.map → chunk-RDYTHJAG.js.map} +1 -1
- package/dist/{chunk-YQECYE7N.js → chunk-UZTYCVID.js} +8 -8
- package/dist/{chunk-YQECYE7N.js.map → chunk-UZTYCVID.js.map} +1 -1
- package/dist/{chunk-LHNUJEV5.cjs → chunk-WCJDP3LJ.cjs} +15 -15
- package/dist/{chunk-LHNUJEV5.cjs.map → chunk-WCJDP3LJ.cjs.map} +1 -1
- package/dist/{chunk-YVVZSL6J.cjs → chunk-WKTXM6PR.cjs} +7 -7
- package/dist/{chunk-YVVZSL6J.cjs.map → chunk-WKTXM6PR.cjs.map} +1 -1
- package/dist/{chunk-XAFCD3W2.cjs → chunk-WU7OHOS5.cjs} +10 -9
- package/dist/chunk-WU7OHOS5.cjs.map +1 -0
- package/dist/{chunk-QKZGMKBV.cjs → chunk-XUFHJ74U.cjs} +12 -9
- package/dist/chunk-XUFHJ74U.cjs.map +1 -0
- package/dist/{chunk-Z6SLUMEY.cjs → chunk-Y4MPSSCY.cjs} +9 -9
- package/dist/{chunk-Z6SLUMEY.cjs.map → chunk-Y4MPSSCY.cjs.map} +1 -1
- package/dist/{chunk-XZE2N5VH.cjs → chunk-Z6RS55VH.cjs} +13 -13
- package/dist/{chunk-XZE2N5VH.cjs.map → chunk-Z6RS55VH.cjs.map} +1 -1
- package/dist/{chunk-RAPHSIIS.cjs → chunk-ZO42WCKG.cjs} +50 -50
- package/dist/{chunk-RAPHSIIS.cjs.map → chunk-ZO42WCKG.cjs.map} +1 -1
- package/dist/{chunk-2PSKFARX.js → chunk-ZRJLXE3M.js} +4 -4
- package/dist/{chunk-2PSKFARX.js.map → chunk-ZRJLXE3M.js.map} +1 -1
- package/dist/datasets/dataset.d.ts.map +1 -1
- package/dist/datasets/experiment/index.d.ts.map +1 -1
- package/dist/datasets/experiment/types.d.ts +2 -0
- package/dist/datasets/experiment/types.d.ts.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 +328 -328
- package/dist/docs/references/docs-server-middleware.md +13 -1
- package/dist/docs/references/reference-server-mastra-server.md +3 -2
- package/dist/evals/index.cjs +20 -20
- package/dist/evals/index.js +3 -3
- package/dist/evals/scoreTraces/index.cjs +5 -5
- package/dist/evals/scoreTraces/index.js +2 -2
- 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/llm/model/provider-types.generated.d.ts +4 -3
- 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-HAY7HKUY.js +3 -0
- package/dist/{models-dev-46T4RYCV.js.map → models-dev-HAY7HKUY.js.map} +1 -1
- package/dist/models-dev-UD3X3ZZA.cjs +12 -0
- package/dist/{models-dev-IXRDPMYE.cjs.map → models-dev-UD3X3ZZA.cjs.map} +1 -1
- package/dist/netlify-QEK2EDM4.js +3 -0
- package/dist/{netlify-A25PHNK2.js.map → netlify-QEK2EDM4.js.map} +1 -1
- package/dist/netlify-VLKHEOQD.cjs +12 -0
- package/dist/{netlify-AERELDDR.cjs.map → netlify-VLKHEOQD.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 +42 -42
- package/dist/processors/index.js +1 -1
- package/dist/provider-registry-FSREWVNP.js +3 -0
- package/dist/{provider-registry-FE4XSUID.js.map → provider-registry-FSREWVNP.js.map} +1 -1
- package/dist/provider-registry-KPA73ESB.cjs +40 -0
- package/dist/{provider-registry-6T2HS3XM.cjs.map → provider-registry-KPA73ESB.cjs.map} +1 -1
- package/dist/provider-registry.json +8 -6
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/storage/constants.cjs +56 -56
- package/dist/storage/constants.js +1 -1
- package/dist/storage/domains/experiments/inmemory.d.ts.map +1 -1
- package/dist/storage/index.cjs +160 -160
- package/dist/storage/index.js +2 -2
- package/dist/storage/types.d.ts +1 -0
- package/dist/storage/types.d.ts.map +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/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 +5 -5
- package/src/llm/model/provider-types.generated.d.ts +4 -3
- package/dist/chunk-5QV7Z7XH.js.map +0 -1
- package/dist/chunk-H2KIHE4I.cjs.map +0 -1
- package/dist/chunk-PQWKSCWD.js.map +0 -1
- package/dist/chunk-QKZGMKBV.cjs.map +0 -1
- package/dist/chunk-VAPRBIHM.js.map +0 -1
- package/dist/chunk-XAFCD3W2.cjs.map +0 -1
- package/dist/models-dev-46T4RYCV.js +0 -3
- package/dist/models-dev-IXRDPMYE.cjs +0 -12
- package/dist/netlify-A25PHNK2.js +0 -3
- package/dist/netlify-AERELDDR.cjs +0 -12
- package/dist/provider-registry-6T2HS3XM.cjs +0 -40
- package/dist/provider-registry-FE4XSUID.js +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @mastra/core
|
|
2
2
|
|
|
3
|
+
## 1.16.0-alpha.1
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Added agent version support for experiments. When triggering an experiment, you can now pass an `agentVersion` parameter to pin which agent version to use. The agent version is stored with the experiment and returned in experiment responses. ([#14562](https://github.com/mastra-ai/mastra/pull/14562))
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
const client = new MastraClient();
|
|
11
|
+
|
|
12
|
+
await client.triggerDatasetExperiment({
|
|
13
|
+
datasetId: 'my-dataset',
|
|
14
|
+
targetType: 'agent',
|
|
15
|
+
targetId: 'my-agent',
|
|
16
|
+
version: 3, // pin to dataset version 3
|
|
17
|
+
agentVersion: 'ver_abc123', // pin to a specific agent version
|
|
18
|
+
});
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Improved custom OpenAI-compatible model configuration guidance in the models docs. ([#14594](https://github.com/mastra-ai/mastra/pull/14594))
|
|
24
|
+
|
|
3
25
|
## 1.16.0-alpha.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/dist/agent/index.cjs
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZ6RS55VH_cjs = require('../chunk-Z6RS55VH.cjs');
|
|
4
4
|
var chunkO6O5MD7Q_cjs = require('../chunk-O6O5MD7Q.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 chunkZ6RS55VH_cjs.Agent; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "TripWire", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkZ6RS55VH_cjs.TripWire; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "isSupportedLanguageModel", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkZ6RS55VH_cjs.isSupportedLanguageModel; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "resolveThreadIdFromArgs", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkZ6RS55VH_cjs.resolveThreadIdFromArgs; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "supportedLanguageModelSpecifications", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkZ6RS55VH_cjs.supportedLanguageModelSpecifications; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "tryGenerateWithJsonFallback", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkZ6RS55VH_cjs.tryGenerateWithJsonFallback; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "tryStreamWithJsonFallback", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkZ6RS55VH_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-M7SQZRKA.js';
|
|
2
2
|
export { MessageList, TypeDetector, aiV5ModelMessageToV2PromptMessage, convertMessages } from '../chunk-YPJ5V2S5.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -8488,7 +8488,7 @@ var MastraModelGateway = class {
|
|
|
8488
8488
|
};
|
|
8489
8489
|
|
|
8490
8490
|
// src/llm/model/gateways/constants.ts
|
|
8491
|
-
var MASTRA_USER_AGENT = `mastra/${"1.16.0-alpha.
|
|
8491
|
+
var MASTRA_USER_AGENT = `mastra/${"1.16.0-alpha.1"}` ;
|
|
8492
8492
|
var PROVIDERS_WITH_INSTALLED_PACKAGES = [
|
|
8493
8493
|
"anthropic",
|
|
8494
8494
|
"cerebras",
|
|
@@ -13762,5 +13762,5 @@ function createGoogleGenerativeAI(options = {}) {
|
|
|
13762
13762
|
createGoogleGenerativeAI();
|
|
13763
13763
|
|
|
13764
13764
|
export { AISDKError, APICallError, EXCLUDED_PROVIDERS, EmptyResponseBodyError, EventSourceParserStream, InvalidArgumentError, InvalidPromptError, InvalidResponseDataError, JSONParseError, LoadAPIKeyError, LoadSettingError, MASTRA_USER_AGENT, MastraModelGateway, NoSuchModelError, OpenAICompatibleChatLanguageModel, OpenAICompatibleCompletionLanguageModel, OpenAICompatibleEmbeddingModel, OpenAICompatibleImageModel, PROVIDERS_WITH_INSTALLED_PACKAGES, TooManyEmbeddingValuesForCallError, TypeValidationError, UnsupportedFunctionalityError, combineHeaders, convertBase64ToUint8Array, convertToBase64, convertUint8ArrayToBase64, createAnthropic, createEventSourceResponseHandler, createGoogleGenerativeAI, createJsonErrorResponseHandler, createJsonResponseHandler, createOpenAI, createOpenAICompatible, createProviderDefinedToolFactory, createProviderDefinedToolFactoryWithOutputSchema, dist_exports, extractResponseHeaders, generateId, injectJsonInstructionIntoMessages, isParsableJson, lazySchema, loadApiKey, mediaTypeToExtension, parseProviderOptions, postFormDataToApi, postJsonToApi, safeParseJSON, validateTypes, withUserAgentSuffix, withoutTrailingSlash, zodSchema };
|
|
13765
|
-
//# sourceMappingURL=chunk-
|
|
13766
|
-
//# sourceMappingURL=chunk-
|
|
13765
|
+
//# sourceMappingURL=chunk-2RY3SPHJ.js.map
|
|
13766
|
+
//# sourceMappingURL=chunk-2RY3SPHJ.js.map
|