@mastra/core 1.13.0 → 1.13.2-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 +18 -0
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/{chunk-DORUEGYO.cjs → chunk-33LDNZW3.cjs} +12 -11
- package/dist/chunk-33LDNZW3.cjs.map +1 -0
- package/dist/{chunk-632KY2FA.cjs → chunk-5GSLHMBU.cjs} +23 -23
- package/dist/{chunk-632KY2FA.cjs.map → chunk-5GSLHMBU.cjs.map} +1 -1
- package/dist/{chunk-L66I3YSY.js → chunk-66WWLVDK.js} +3 -3
- package/dist/{chunk-L66I3YSY.js.map → chunk-66WWLVDK.js.map} +1 -1
- package/dist/{chunk-GAQJFSFI.js → chunk-6GF2W42Q.js} +6 -6
- package/dist/{chunk-GAQJFSFI.js.map → chunk-6GF2W42Q.js.map} +1 -1
- package/dist/{chunk-TRUVWKEY.js → chunk-6JV5IUXJ.js} +3 -3
- package/dist/chunk-6JV5IUXJ.js.map +1 -0
- package/dist/{chunk-VJJGOU4M.js → chunk-7VTS3ZNK.js} +4 -4
- package/dist/{chunk-VJJGOU4M.js.map → chunk-7VTS3ZNK.js.map} +1 -1
- package/dist/{chunk-DH66HVHZ.cjs → chunk-BEZMMKUD.cjs} +3 -3
- package/dist/chunk-BEZMMKUD.cjs.map +1 -0
- package/dist/{chunk-3Y6B3RK4.js → chunk-E4WRCM75.js} +4 -4
- package/dist/{chunk-3Y6B3RK4.js.map → chunk-E4WRCM75.js.map} +1 -1
- package/dist/{chunk-5MG3A5L4.cjs → chunk-FN7ZHGGT.cjs} +6 -6
- package/dist/{chunk-5MG3A5L4.cjs.map → chunk-FN7ZHGGT.cjs.map} +1 -1
- package/dist/{chunk-O6EEO6H6.js → chunk-H6MVVK7Q.js} +3 -3
- package/dist/{chunk-O6EEO6H6.js.map → chunk-H6MVVK7Q.js.map} +1 -1
- package/dist/{chunk-ILVF3GQC.js → chunk-HPV5UKUY.js} +4 -4
- package/dist/{chunk-ILVF3GQC.js.map → chunk-HPV5UKUY.js.map} +1 -1
- package/dist/{chunk-2LYJXRD7.cjs → chunk-J6WN5QWK.cjs} +7 -7
- package/dist/{chunk-2LYJXRD7.cjs.map → chunk-J6WN5QWK.cjs.map} +1 -1
- package/dist/{chunk-CSVJ4ROQ.cjs → chunk-KIEI22IT.cjs} +5 -5
- package/dist/{chunk-CSVJ4ROQ.cjs.map → chunk-KIEI22IT.cjs.map} +1 -1
- package/dist/{chunk-K7QTTUTL.cjs → chunk-OUWBWSBO.cjs} +9 -9
- package/dist/{chunk-K7QTTUTL.cjs.map → chunk-OUWBWSBO.cjs.map} +1 -1
- package/dist/{chunk-ENXNLZOX.js → chunk-P2KXTJGJ.js} +3 -3
- package/dist/{chunk-ENXNLZOX.js.map → chunk-P2KXTJGJ.js.map} +1 -1
- package/dist/{chunk-KPKJY76F.js → chunk-PMZV3QS6.js} +3 -3
- package/dist/{chunk-KPKJY76F.js.map → chunk-PMZV3QS6.js.map} +1 -1
- package/dist/{chunk-WKKUCOSS.cjs → chunk-QBXGCG32.cjs} +5 -5
- package/dist/{chunk-WKKUCOSS.cjs.map → chunk-QBXGCG32.cjs.map} +1 -1
- package/dist/{chunk-K3M2OD5N.js → chunk-RE7MLRRO.js} +4 -3
- package/dist/chunk-RE7MLRRO.js.map +1 -0
- package/dist/{chunk-KB3YS4NC.cjs → chunk-TCEVKLDE.cjs} +47 -47
- package/dist/{chunk-KB3YS4NC.cjs.map → chunk-TCEVKLDE.cjs.map} +1 -1
- package/dist/{chunk-MBWVMU2V.cjs → chunk-TJQNFXCG.cjs} +185 -185
- package/dist/{chunk-MBWVMU2V.cjs.map → chunk-TJQNFXCG.cjs.map} +1 -1
- package/dist/{chunk-SBVDJ5Z7.cjs → chunk-VEJWFOMI.cjs} +15 -15
- package/dist/{chunk-SBVDJ5Z7.cjs.map → chunk-VEJWFOMI.cjs.map} +1 -1
- package/dist/{chunk-2GKPFOQH.js → chunk-WBGAE5HL.js} +8 -8
- package/dist/{chunk-2GKPFOQH.js.map → chunk-WBGAE5HL.js.map} +1 -1
- package/dist/datasets/index.cjs +11 -11
- package/dist/datasets/index.js +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +164 -164
- 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/memory/types.d.ts +1 -1
- package/dist/memory/types.d.ts.map +1 -1
- package/dist/models-dev-AOKPLFIV.cjs +12 -0
- package/dist/{models-dev-6KB3OWD4.cjs.map → models-dev-AOKPLFIV.cjs.map} +1 -1
- package/dist/models-dev-OZH7VIY3.js +3 -0
- package/dist/{models-dev-562OPULG.js.map → models-dev-OZH7VIY3.js.map} +1 -1
- package/dist/netlify-FPTUENAH.cjs +12 -0
- package/dist/{netlify-USTLHJSL.cjs.map → netlify-FPTUENAH.cjs.map} +1 -1
- package/dist/netlify-RDJ5J75F.js +3 -0
- package/dist/{netlify-Z5TEPY4B.js.map → netlify-RDJ5J75F.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 +42 -42
- package/dist/processors/index.js +1 -1
- package/dist/provider-registry-DFYFWNNH.cjs +40 -0
- package/dist/{provider-registry-7DIG7MYE.cjs.map → provider-registry-DFYFWNNH.cjs.map} +1 -1
- package/dist/provider-registry-EORLHUOD.js +3 -0
- package/dist/{provider-registry-PVY4JPVT.js.map → provider-registry-EORLHUOD.js.map} +1 -1
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/stream/aisdk/v5/transform.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/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 +10 -10
- package/dist/chunk-DH66HVHZ.cjs.map +0 -1
- package/dist/chunk-DORUEGYO.cjs.map +0 -1
- package/dist/chunk-K3M2OD5N.js.map +0 -1
- package/dist/chunk-TRUVWKEY.js.map +0 -1
- package/dist/models-dev-562OPULG.js +0 -3
- package/dist/models-dev-6KB3OWD4.cjs +0 -12
- package/dist/netlify-USTLHJSL.cjs +0 -12
- package/dist/netlify-Z5TEPY4B.js +0 -3
- package/dist/provider-registry-7DIG7MYE.cjs +0 -40
- package/dist/provider-registry-PVY4JPVT.js +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @mastra/core
|
|
2
2
|
|
|
3
|
+
## 1.13.2-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix WorkingMemory type to accept Zod schemas in workingMemory.schema configuration ([#14261](https://github.com/mastra-ai/mastra/pull/14261))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`1978bc4`](https://github.com/mastra-ai/mastra/commit/1978bc424dbb04f5f7c5d8522f07f1166006fa3f)]:
|
|
10
|
+
- @mastra/schema-compat@1.2.4-alpha.0
|
|
11
|
+
|
|
12
|
+
## 1.13.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Fixed tryRepairJson to handle unquoted date values (e.g. 2026-04-15) in tool call arguments. LLMs like Claude Sonnet sometimes produce bare date values without quotes, causing JSON.parse to fail and tool calls to silently lose all arguments. The repair function now detects and quotes date-like values matching YYYY-MM-DD and YYYY-MM-DDTHH:MM:SS patterns. See https://github.com/mastra-ai/mastra/issues/14230 ([#14233](https://github.com/mastra-ai/mastra/pull/14233))
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [[`c4e600e`](https://github.com/mastra-ai/mastra/commit/c4e600e39a04309c3a7ff182bd806ab2b3c788ea)]:
|
|
19
|
+
- @mastra/schema-compat@1.2.3
|
|
20
|
+
|
|
3
21
|
## 1.13.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/dist/agent/index.cjs
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk33LDNZW3_cjs = require('../chunk-33LDNZW3.cjs');
|
|
4
4
|
var chunkCLKMJINC_cjs = require('../chunk-CLKMJINC.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 chunk33LDNZW3_cjs.Agent; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "TripWire", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk33LDNZW3_cjs.TripWire; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "isSupportedLanguageModel", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk33LDNZW3_cjs.isSupportedLanguageModel; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "resolveThreadIdFromArgs", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk33LDNZW3_cjs.resolveThreadIdFromArgs; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "supportedLanguageModelSpecifications", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk33LDNZW3_cjs.supportedLanguageModelSpecifications; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "tryGenerateWithJsonFallback", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk33LDNZW3_cjs.tryGenerateWithJsonFallback; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "tryStreamWithJsonFallback", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunk33LDNZW3_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-RE7MLRRO.js';
|
|
2
2
|
export { MessageList, TypeDetector, aiV5ModelMessageToV2PromptMessage, convertMessages } from '../chunk-ESN5IH6I.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -8,7 +8,7 @@ var chunkCLKMJINC_cjs = require('./chunk-CLKMJINC.cjs');
|
|
|
8
8
|
var chunkFXGVRQSG_cjs = require('./chunk-FXGVRQSG.cjs');
|
|
9
9
|
var chunkSPDQUG6O_cjs = require('./chunk-SPDQUG6O.cjs');
|
|
10
10
|
var chunkMR7ZWBL6_cjs = require('./chunk-MR7ZWBL6.cjs');
|
|
11
|
-
var
|
|
11
|
+
var chunk5GSLHMBU_cjs = require('./chunk-5GSLHMBU.cjs');
|
|
12
12
|
var chunk6IM3BPH2_cjs = require('./chunk-6IM3BPH2.cjs');
|
|
13
13
|
var chunk6BJ7XHRH_cjs = require('./chunk-6BJ7XHRH.cjs');
|
|
14
14
|
var chunkOQDRPRKM_cjs = require('./chunk-OQDRPRKM.cjs');
|
|
@@ -2079,7 +2079,7 @@ var ProcessorRunner = class _ProcessorRunner {
|
|
|
2079
2079
|
}
|
|
2080
2080
|
const { model: _model, ...rest } = result;
|
|
2081
2081
|
if (result.model) {
|
|
2082
|
-
const resolvedModel = await
|
|
2082
|
+
const resolvedModel = await chunk5GSLHMBU_cjs.resolveModelConfig(result.model);
|
|
2083
2083
|
const isSupported = isSupportedLanguageModel(resolvedModel);
|
|
2084
2084
|
if (!isSupported) {
|
|
2085
2085
|
throw new chunk4U7ZLI36_cjs.MastraError({
|
|
@@ -4347,6 +4347,7 @@ function tryRepairJson(input) {
|
|
|
4347
4347
|
repaired = repaired.replace(/([{,]\s*)([a-zA-Z_$][a-zA-Z0-9_$]*)\s*:/g, '$1"$2":');
|
|
4348
4348
|
repaired = repaired.replace(/'/g, '"');
|
|
4349
4349
|
repaired = repaired.replace(/,(\s*[}\]])/g, "$1");
|
|
4350
|
+
repaired = repaired.replace(/:\s*(\d{4}-\d{2}-\d{2}(?:T[\d:]+)?)\s*([,}])/g, ': "$1"$2');
|
|
4350
4351
|
try {
|
|
4351
4352
|
return JSON.parse(repaired);
|
|
4352
4353
|
} catch {
|
|
@@ -11344,7 +11345,7 @@ var MastraScorer = class _MastraScorer {
|
|
|
11344
11345
|
}
|
|
11345
11346
|
});
|
|
11346
11347
|
}
|
|
11347
|
-
const resolvedModel = await
|
|
11348
|
+
const resolvedModel = await chunk5GSLHMBU_cjs.resolveModelConfig(modelConfig, void 0, this.#mastra);
|
|
11348
11349
|
const judge = new Agent({
|
|
11349
11350
|
id: "judge",
|
|
11350
11351
|
name: "judge",
|
|
@@ -12940,7 +12941,7 @@ Analyse the suspended tools: ${JSON.stringify(suspendedTools)}, using the messag
|
|
|
12940
12941
|
}
|
|
12941
12942
|
});
|
|
12942
12943
|
let transportResolver;
|
|
12943
|
-
if (currentStep.model instanceof
|
|
12944
|
+
if (currentStep.model instanceof chunk5GSLHMBU_cjs.ModelRouterLanguageModel) {
|
|
12944
12945
|
const routerModel = currentStep.model;
|
|
12945
12946
|
transportResolver = () => routerModel._getStreamTransport();
|
|
12946
12947
|
}
|
|
@@ -19901,7 +19902,7 @@ ${errorMessages}`,
|
|
|
19901
19902
|
*/
|
|
19902
19903
|
async resolveModelConfig(modelConfig, requestContext) {
|
|
19903
19904
|
try {
|
|
19904
|
-
return await
|
|
19905
|
+
return await chunk5GSLHMBU_cjs.resolveModelConfig(modelConfig, requestContext, this.#mastra);
|
|
19905
19906
|
} catch (error) {
|
|
19906
19907
|
const mastraError = new chunk4U7ZLI36_cjs.MastraError({
|
|
19907
19908
|
id: "AGENT_GET_MODEL_MISSING_MODEL_INSTANCE",
|
|
@@ -21964,7 +21965,7 @@ ${effectiveInstructions}`;
|
|
|
21964
21965
|
const resolvedModel = await this.resolveModelConfig(selection, requestContext);
|
|
21965
21966
|
this.assertSupportsPreparedModels(resolvedModel);
|
|
21966
21967
|
let headers;
|
|
21967
|
-
if (resolvedModel instanceof
|
|
21968
|
+
if (resolvedModel instanceof chunk5GSLHMBU_cjs.ModelRouterLanguageModel) {
|
|
21968
21969
|
headers = resolvedModel.config?.headers;
|
|
21969
21970
|
}
|
|
21970
21971
|
return [
|
|
@@ -21997,7 +21998,7 @@ ${effectiveInstructions}`;
|
|
|
21997
21998
|
throw mastraError;
|
|
21998
21999
|
}
|
|
21999
22000
|
let headers;
|
|
22000
|
-
if (model instanceof
|
|
22001
|
+
if (model instanceof chunk5GSLHMBU_cjs.ModelRouterLanguageModel) {
|
|
22001
22002
|
headers = model.config?.headers;
|
|
22002
22003
|
}
|
|
22003
22004
|
return {
|
|
@@ -26096,7 +26097,7 @@ https://mastra.ai/en/docs/memory/semantic-recall`
|
|
|
26096
26097
|
);
|
|
26097
26098
|
}
|
|
26098
26099
|
if (typeof config.embedder === "string") {
|
|
26099
|
-
this.embedder = new
|
|
26100
|
+
this.embedder = new chunk5GSLHMBU_cjs.ModelRouterEmbeddingModel(config.embedder);
|
|
26100
26101
|
} else {
|
|
26101
26102
|
this.embedder = config.embedder;
|
|
26102
26103
|
}
|
|
@@ -26135,7 +26136,7 @@ https://mastra.ai/en/docs/memory/overview`
|
|
|
26135
26136
|
}
|
|
26136
26137
|
setEmbedder(embedder, embedderOptions) {
|
|
26137
26138
|
if (typeof embedder === "string") {
|
|
26138
|
-
this.embedder = new
|
|
26139
|
+
this.embedder = new chunk5GSLHMBU_cjs.ModelRouterEmbeddingModel(embedder);
|
|
26139
26140
|
} else {
|
|
26140
26141
|
this.embedder = embedder;
|
|
26141
26142
|
}
|
|
@@ -26890,5 +26891,5 @@ exports.validateStepRequestContext = validateStepRequestContext;
|
|
|
26890
26891
|
exports.validateStepResumeData = validateStepResumeData;
|
|
26891
26892
|
exports.validateStepStateData = validateStepStateData;
|
|
26892
26893
|
exports.validateStepSuspendData = validateStepSuspendData;
|
|
26893
|
-
//# sourceMappingURL=chunk-
|
|
26894
|
-
//# sourceMappingURL=chunk-
|
|
26894
|
+
//# sourceMappingURL=chunk-33LDNZW3.cjs.map
|
|
26895
|
+
//# sourceMappingURL=chunk-33LDNZW3.cjs.map
|