@mastra/core 1.19.0-alpha.2 → 1.19.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 +30 -0
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/{chunk-BS5UESNT.js → chunk-AJKSDWYG.js} +3 -3
- package/dist/{chunk-BS5UESNT.js.map → chunk-AJKSDWYG.js.map} +1 -1
- package/dist/{chunk-6XYHMM2X.js → chunk-CDBYRAGD.js} +8 -8
- package/dist/{chunk-6XYHMM2X.js.map → chunk-CDBYRAGD.js.map} +1 -1
- package/dist/{chunk-IQV2SVCE.cjs → chunk-DXVPNFCK.cjs} +48 -48
- package/dist/{chunk-IQV2SVCE.cjs.map → chunk-DXVPNFCK.cjs.map} +1 -1
- package/dist/{chunk-QB4YHCVA.cjs → chunk-FTUA42MM.cjs} +15 -15
- package/dist/{chunk-QB4YHCVA.cjs.map → chunk-FTUA42MM.cjs.map} +1 -1
- package/dist/{chunk-O542TXPV.cjs → chunk-IBLDKFND.cjs} +12 -12
- package/dist/{chunk-O542TXPV.cjs.map → chunk-IBLDKFND.cjs.map} +1 -1
- package/dist/{chunk-NWOPWLJ3.cjs → chunk-J7BYONJB.cjs} +75 -75
- package/dist/{chunk-NWOPWLJ3.cjs.map → chunk-J7BYONJB.cjs.map} +1 -1
- package/dist/{chunk-E3JUOJME.cjs → chunk-JDKHHTWK.cjs} +5 -5
- package/dist/{chunk-E3JUOJME.cjs.map → chunk-JDKHHTWK.cjs.map} +1 -1
- package/dist/{chunk-D5EXC3XM.js → chunk-KIOHHOOC.js} +4 -4
- package/dist/{chunk-D5EXC3XM.js.map → chunk-KIOHHOOC.js.map} +1 -1
- package/dist/{chunk-2RTFET56.cjs → chunk-LU4HKXIC.cjs} +7 -7
- package/dist/{chunk-2RTFET56.cjs.map → chunk-LU4HKXIC.cjs.map} +1 -1
- package/dist/{chunk-F4PVOQKD.js → chunk-QQGCWWC2.js} +3 -3
- package/dist/{chunk-F4PVOQKD.js.map → chunk-QQGCWWC2.js.map} +1 -1
- package/dist/{chunk-RD76XK7E.cjs → chunk-RD7E2WA7.cjs} +3 -3
- package/dist/chunk-RD7E2WA7.cjs.map +1 -0
- package/dist/{chunk-6TEEIOHA.js → chunk-RY3AKSKG.js} +4 -4
- package/dist/{chunk-6TEEIOHA.js.map → chunk-RY3AKSKG.js.map} +1 -1
- package/dist/{chunk-WKAEIA42.cjs → chunk-TFLZDAHL.cjs} +9 -9
- package/dist/{chunk-WKAEIA42.cjs.map → chunk-TFLZDAHL.cjs.map} +1 -1
- package/dist/{chunk-GFQPMPSV.cjs → chunk-VOH5J5MP.cjs} +5 -5
- package/dist/{chunk-GFQPMPSV.cjs.map → chunk-VOH5J5MP.cjs.map} +1 -1
- package/dist/{chunk-M62LMDHE.js → chunk-W45M6VA3.js} +6 -6
- package/dist/{chunk-M62LMDHE.js.map → chunk-W45M6VA3.js.map} +1 -1
- package/dist/{chunk-Z6I5PBGG.js → chunk-W4BUQXYD.js} +4 -4
- package/dist/{chunk-Z6I5PBGG.js.map → chunk-W4BUQXYD.js.map} +1 -1
- package/dist/{chunk-CSIKD56W.js → chunk-WRQKWAUF.js} +3 -3
- package/dist/chunk-WRQKWAUF.js.map +1 -0
- package/dist/{chunk-MN7WNZE6.cjs → chunk-XCRE3OQ7.cjs} +6 -6
- package/dist/{chunk-MN7WNZE6.cjs.map → chunk-XCRE3OQ7.cjs.map} +1 -1
- package/dist/{chunk-X5BBF6AG.js → chunk-Y3E5NIVT.js} +3 -3
- package/dist/{chunk-X5BBF6AG.js.map → chunk-Y3E5NIVT.js.map} +1 -1
- package/dist/{chunk-5OBBDZBA.cjs → chunk-Z2BK46LA.cjs} +185 -185
- package/dist/{chunk-5OBBDZBA.cjs.map → chunk-Z2BK46LA.cjs.map} +1 -1
- package/dist/{chunk-VYZRHQUD.js → chunk-ZT7OF2I7.js} +3 -3
- package/dist/{chunk-VYZRHQUD.js.map → chunk-ZT7OF2I7.js.map} +1 -1
- package/dist/{chunk-IOHKSHT4.js → chunk-ZVY5Q62R.js} +3 -3
- package/dist/{chunk-IOHKSHT4.js.map → chunk-ZVY5Q62R.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 +121 -121
- 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-A6EVOC4O.cjs +12 -0
- package/dist/{models-dev-VAVD7BDV.cjs.map → models-dev-A6EVOC4O.cjs.map} +1 -1
- package/dist/models-dev-WEHUZMGE.js +3 -0
- package/dist/{models-dev-VFIUOVG4.js.map → models-dev-WEHUZMGE.js.map} +1 -1
- package/dist/netlify-EA3ULGDW.js +3 -0
- package/dist/{netlify-Q3SJTV4U.js.map → netlify-EA3ULGDW.js.map} +1 -1
- package/dist/netlify-PJUR573K.cjs +12 -0
- package/dist/{netlify-KL3UR26O.cjs.map → netlify-PJUR573K.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-HLGSEIJ7.cjs +40 -0
- package/dist/{provider-registry-IAU4XHVY.cjs.map → provider-registry-HLGSEIJ7.cjs.map} +1 -1
- package/dist/provider-registry-XDYB4MNV.js +3 -0
- package/dist/{provider-registry-COX4XKGI.js.map → provider-registry-XDYB4MNV.js.map} +1 -1
- 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/dist/chunk-CSIKD56W.js.map +0 -1
- package/dist/chunk-RD76XK7E.cjs.map +0 -1
- package/dist/models-dev-VAVD7BDV.cjs +0 -12
- package/dist/models-dev-VFIUOVG4.js +0 -3
- package/dist/netlify-KL3UR26O.cjs +0 -12
- package/dist/netlify-Q3SJTV4U.js +0 -3
- package/dist/provider-registry-COX4XKGI.js +0 -3
- package/dist/provider-registry-IAU4XHVY.cjs +0 -40
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @mastra/core
|
|
2
2
|
|
|
3
|
+
## 1.19.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- feat(memory): add minMessages option to generateTitle config ([#14778](https://github.com/mastra-ai/mastra/pull/14778))
|
|
8
|
+
|
|
9
|
+
Delay automatic title generation until a minimum number of messages is reached, improving title quality and reducing unnecessary LLM calls.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Update provider registry and model documentation with latest models and providers ([`180aaaf`](https://github.com/mastra-ai/mastra/commit/180aaaf4d0903d33a49bc72de2d40ca69a5bc599))
|
|
14
|
+
|
|
15
|
+
- Streaming traces now end correctly when a model call fails or a request is aborted, so they no longer remain stuck "in progress" in observability tools. ([#14661](https://github.com/mastra-ai/mastra/pull/14661))
|
|
16
|
+
|
|
17
|
+
- Fix getWorkflowRunById with withNestedWorkflows not returning nested steps for branch sub-workflows ([#14713](https://github.com/mastra-ai/mastra/pull/14713))
|
|
18
|
+
|
|
19
|
+
- Tools that return objects with circular references no longer crash the agent with "Converting circular structure to JSON". Circular parts are replaced with `"[Circular]"` and the conversation continues normally. ([#14535](https://github.com/mastra-ai/mastra/pull/14535))
|
|
20
|
+
|
|
21
|
+
- Fixed crashes when using `ModelRouterLanguageModel` with AI SDK v6's `generateObject()` or `generateText()`. The model router now correctly preserves usage and metadata from underlying models. ([#14283](https://github.com/mastra-ai/mastra/pull/14283))
|
|
22
|
+
|
|
23
|
+
- Agents using structured output no longer fail when workflow tools are present. Setting toolChoice to 'none' now correctly prevents tools from being sent to the provider, fixing errors from providers like Gemini that reject structured output requests when tools are included. ([#14466](https://github.com/mastra-ai/mastra/pull/14466))
|
|
24
|
+
|
|
25
|
+
- Sub-agent tool calls no longer fail when LLMs use `query`, `message`, or `input` instead of `prompt` during repeated sub-agent calls via custom gateways. These common aliases are now automatically recognized and mapped to `prompt` when the schema expects it. ([#14219](https://github.com/mastra-ai/mastra/pull/14219))
|
|
26
|
+
|
|
27
|
+
- Fixed an issue where supervisor agent messages were being saved to the sub-agent thread, causing duplicate tool call badges to appear in the chat history when sub-agents are invoked multiple times. ([#13881](https://github.com/mastra-ai/mastra/pull/13881))
|
|
28
|
+
|
|
29
|
+
- Fixed workspace vector indexing silently swallowing embedder and search engine errors during auto-indexing. File-read errors (binary files, invalid UTF-8) are still skipped, but indexing failures are now logged as warnings instead of being silently ignored. ([#14786](https://github.com/mastra-ai/mastra/pull/14786))
|
|
30
|
+
|
|
31
|
+
- Fixed incorrect type cast for sub-agent context messages. The context option for new API methods (generate, stream, resumeGenerate, resumeStream) now correctly casts to ModelMessage[] instead of CoreMessage[]. ([#14895](https://github.com/mastra-ai/mastra/pull/14895))
|
|
32
|
+
|
|
3
33
|
## 1.19.0-alpha.2
|
|
4
34
|
|
|
5
35
|
### Minor Changes
|
package/dist/agent/index.cjs
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIBLDKFND_cjs = require('../chunk-IBLDKFND.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 chunkIBLDKFND_cjs.Agent; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "TripWire", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkIBLDKFND_cjs.TripWire; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "isSupportedLanguageModel", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkIBLDKFND_cjs.isSupportedLanguageModel; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "resolveThreadIdFromArgs", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkIBLDKFND_cjs.resolveThreadIdFromArgs; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "supportedLanguageModelSpecifications", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkIBLDKFND_cjs.supportedLanguageModelSpecifications; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "tryGenerateWithJsonFallback", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkIBLDKFND_cjs.tryGenerateWithJsonFallback; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "tryStreamWithJsonFallback", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkIBLDKFND_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-AJKSDWYG.js';
|
|
2
2
|
export { MessageList, TypeDetector, aiV5ModelMessageToV2PromptMessage, convertMessages } from '../chunk-SLZ3WO42.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -6,7 +6,7 @@ import { MessageList, coreContentToString, DefaultGeneratedFile, DefaultGenerate
|
|
|
6
6
|
import { parsePartialJson, isDeepEqualData, stepCountIs } from './chunk-2PHG443D.js';
|
|
7
7
|
import { generateId, APICallError, tool, asSchema } from './chunk-6PALJNKG.js';
|
|
8
8
|
import { executeHook } from './chunk-L54GIUCB.js';
|
|
9
|
-
import { resolveModelConfig, ModelRouterEmbeddingModel, ModelRouterLanguageModel } from './chunk-
|
|
9
|
+
import { resolveModelConfig, ModelRouterEmbeddingModel, ModelRouterLanguageModel } from './chunk-W45M6VA3.js';
|
|
10
10
|
import { MastraLLMV1 } from './chunk-QIOD3LOP.js';
|
|
11
11
|
import { noopLogger } from './chunk-PSCMWPLC.js';
|
|
12
12
|
import { EventEmitterPubSub } from './chunk-X2HAI3OX.js';
|
|
@@ -27344,5 +27344,5 @@ var MockMemory = class extends MastraMemory {
|
|
|
27344
27344
|
};
|
|
27345
27345
|
|
|
27346
27346
|
export { Agent, AgentsMDInjector, BaseProcessor, BatchPartsProcessor, ChunkFrom, DefaultExecutionEngine, ExecutionEngine, FilePartSchema, ImagePartSchema, LanguageDetector, MastraAgentNetworkStream, MastraMemory, MastraModelOutput, MastraScorer, MemoryProcessor, MessageContentSchema, MessageHistory, MessagePartSchema, MockMemory, ModerationProcessor, PIIDetector, ProcessorInputPhaseSchema, ProcessorInputStepPhaseSchema, ProcessorMessageContentSchema, ProcessorMessageSchema, ProcessorOutputResultPhaseSchema, ProcessorOutputStepPhaseSchema, ProcessorOutputStreamPhaseSchema, ProcessorRunner, ProcessorState, ProcessorStepInputSchema, ProcessorStepOutputSchema, ProcessorStepSchema, PromptInjectionDetector, ReasoningPartSchema, Run, SemanticRecall, SkillSearchProcessor, SkillsProcessor, SourcePartSchema, StepStartPartSchema, StructuredOutputProcessor, SystemPromptScrubber, TextPartSchema, TokenLimiterProcessor, ToolCallFilter, ToolInvocationPartSchema, ToolSearchProcessor, TripWire, UnicodeNormalizer, WORKING_MEMORY_END_TAG, WORKING_MEMORY_START_TAG, Workflow, WorkflowRunOutput, WorkingMemory, WorkspaceInstructionsProcessor, augmentWithInit, cleanStepResult, cloneStep, cloneWorkflow, convertFullStreamChunkToMastra, convertFullStreamChunkToUIMessageStream, convertMastraChunkToAISDKv5, createDeprecationProxy, createScorer, createStep, createTimeTravelExecutionParams, createWorkflow, extractWorkingMemoryContent, extractWorkingMemoryTags, formatCheckFeedback, formatCompletionFeedback, formatStreamCompletionFeedback, formatValidationFeedback, forwardAgentStreamChunk, generateFinalResult, generateStructuredFinalResult, getResumeLabelsByStepId, getStepIds, getStepResult, getThreadOMMetadata, globalEmbeddingCache, hydrateSerializedStepErrors, isObservationalMemoryEnabled, isProcessor, isProcessorWorkflow, isSupportedLanguageModel, loop, mapVariable, memoryDefaultOptions, parseMemoryRequestContext, removeWorkingMemoryTags, resolveThreadIdFromArgs, runChecks, runCompletionScorers, runCountDeprecationMessage, runDefaultCompletionCheck, runStreamCompletionScorers, runValidation, setThreadOMMetadata, supportedLanguageModelSpecifications, tryGenerateWithJsonFallback, tryStreamWithJsonFallback, validateStepInput, validateStepRequestContext, validateStepResumeData, validateStepStateData, validateStepSuspendData };
|
|
27347
|
-
//# sourceMappingURL=chunk-
|
|
27348
|
-
//# sourceMappingURL=chunk-
|
|
27347
|
+
//# sourceMappingURL=chunk-AJKSDWYG.js.map
|
|
27348
|
+
//# sourceMappingURL=chunk-AJKSDWYG.js.map
|