@mastra/core 1.15.0-alpha.3 → 1.15.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 +113 -0
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/{chunk-K5NREJ7B.cjs → chunk-2YN2UNSQ.cjs} +6 -6
- package/dist/{chunk-K5NREJ7B.cjs.map → chunk-2YN2UNSQ.cjs.map} +1 -1
- package/dist/{chunk-VPN66PYF.js → chunk-3A2WQ6XL.js} +3 -3
- package/dist/{chunk-VPN66PYF.js.map → chunk-3A2WQ6XL.js.map} +1 -1
- package/dist/{chunk-BAUAKBM6.cjs → chunk-5JO4UOHA.cjs} +185 -185
- package/dist/{chunk-BAUAKBM6.cjs.map → chunk-5JO4UOHA.cjs.map} +1 -1
- package/dist/{chunk-K6EF74Q4.js → chunk-6JLJTBF7.js} +3 -3
- package/dist/chunk-6JLJTBF7.js.map +1 -0
- package/dist/{chunk-4HBFSEH5.cjs → chunk-BVFFFLMD.cjs} +7 -7
- package/dist/{chunk-4HBFSEH5.cjs.map → chunk-BVFFFLMD.cjs.map} +1 -1
- package/dist/{chunk-DYFEJA5J.cjs → chunk-BXSSIONK.cjs} +20 -17
- package/dist/chunk-BXSSIONK.cjs.map +1 -0
- package/dist/{chunk-7FCDSKDP.cjs → chunk-EB6WWMRH.cjs} +3 -3
- package/dist/chunk-EB6WWMRH.cjs.map +1 -0
- package/dist/{chunk-O5KUYSYB.js → chunk-EHC3R2MJ.js} +3 -3
- package/dist/{chunk-O5KUYSYB.js.map → chunk-EHC3R2MJ.js.map} +1 -1
- package/dist/{chunk-CJHZXD3U.js → chunk-H4QQ6U2N.js} +7 -7
- package/dist/{chunk-CJHZXD3U.js.map → chunk-H4QQ6U2N.js.map} +1 -1
- package/dist/{chunk-SVHGG25E.js → chunk-JEAJVWXB.js} +9 -9
- package/dist/{chunk-SVHGG25E.js.map → chunk-JEAJVWXB.js.map} +1 -1
- package/dist/{chunk-XOBYVWML.cjs → chunk-NI5Q26SA.cjs} +10 -10
- package/dist/{chunk-XOBYVWML.cjs.map → chunk-NI5Q26SA.cjs.map} +1 -1
- package/dist/{chunk-A5IWSJLJ.cjs → chunk-P2PWEGRW.cjs} +76 -76
- package/dist/{chunk-A5IWSJLJ.cjs.map → chunk-P2PWEGRW.cjs.map} +1 -1
- package/dist/{chunk-M4AJQGAW.js → chunk-P4GCK6VL.js} +12 -9
- package/dist/chunk-P4GCK6VL.js.map +1 -0
- package/dist/{chunk-OFY7LQSG.cjs → chunk-PJTQ3KPM.cjs} +49 -49
- package/dist/chunk-PJTQ3KPM.cjs.map +1 -0
- package/dist/{chunk-5TR3QHRW.cjs → chunk-Q37F6PBO.cjs} +16 -16
- package/dist/{chunk-5TR3QHRW.cjs.map → chunk-Q37F6PBO.cjs.map} +1 -1
- package/dist/{chunk-MFB7BS3L.js → chunk-RTQZRDV7.js} +24 -8
- package/dist/chunk-RTQZRDV7.js.map +1 -0
- package/dist/{chunk-3QVIGF2C.js → chunk-SEXK27FJ.js} +4 -4
- package/dist/chunk-SEXK27FJ.js.map +1 -0
- package/dist/{chunk-6H4DIT5W.cjs → chunk-U37AM3YI.cjs} +5 -5
- package/dist/{chunk-6H4DIT5W.cjs.map → chunk-U37AM3YI.cjs.map} +1 -1
- package/dist/{chunk-AVLD4VHQ.js → chunk-WAPASC33.js} +4 -4
- package/dist/{chunk-AVLD4VHQ.js.map → chunk-WAPASC33.js.map} +1 -1
- package/dist/{chunk-B5M72XCG.js → chunk-WRHDZMKQ.js} +4 -4
- package/dist/{chunk-B5M72XCG.js.map → chunk-WRHDZMKQ.js.map} +1 -1
- package/dist/{chunk-TRLOXCPX.cjs → chunk-XIQD3JK4.cjs} +25 -9
- package/dist/chunk-XIQD3JK4.cjs.map +1 -0
- package/dist/{chunk-6OM5P63S.js → chunk-Z6IJWMIL.js} +4 -4
- package/dist/{chunk-6OM5P63S.js.map → chunk-Z6IJWMIL.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 +122 -122
- package/dist/docs/references/docs-memory-observational-memory.md +28 -0
- package/dist/docs/references/reference-memory-observational-memory.md +38 -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 +16 -16
- package/dist/llm/index.js +5 -5
- package/dist/llm/model/provider-types.generated.d.ts +9 -1
- 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/memory.d.ts.map +1 -1
- package/dist/memory/mock.d.ts +3 -2
- package/dist/memory/mock.d.ts.map +1 -1
- package/dist/memory/types.d.ts +15 -0
- package/dist/memory/types.d.ts.map +1 -1
- package/dist/models-dev-MYQ5DG6M.js +3 -0
- package/dist/{models-dev-KSUL2WSE.js.map → models-dev-MYQ5DG6M.js.map} +1 -1
- package/dist/models-dev-U7CZOMQF.cjs +12 -0
- package/dist/{models-dev-N3BB7QC6.cjs.map → models-dev-U7CZOMQF.cjs.map} +1 -1
- package/dist/netlify-GCMZMVMD.cjs +12 -0
- package/dist/{netlify-5FZZLF2V.cjs.map → netlify-GCMZMVMD.cjs.map} +1 -1
- package/dist/netlify-MUGFMWEG.js +3 -0
- package/dist/{netlify-YHUBX5AX.js.map → netlify-MUGFMWEG.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-3BGGCZ2Y.js +3 -0
- package/dist/{provider-registry-52PKE45P.js.map → provider-registry-3BGGCZ2Y.js.map} +1 -1
- package/dist/provider-registry-QXHI4DMY.cjs +40 -0
- package/dist/{provider-registry-YH7WKSYN.cjs.map → provider-registry-QXHI4DMY.cjs.map} +1 -1
- package/dist/provider-registry.json +20 -4
- 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 +10 -10
- package/src/llm/model/provider-types.generated.d.ts +9 -1
- package/dist/chunk-3QVIGF2C.js.map +0 -1
- package/dist/chunk-7FCDSKDP.cjs.map +0 -1
- package/dist/chunk-DYFEJA5J.cjs.map +0 -1
- package/dist/chunk-K6EF74Q4.js.map +0 -1
- package/dist/chunk-M4AJQGAW.js.map +0 -1
- package/dist/chunk-MFB7BS3L.js.map +0 -1
- package/dist/chunk-OFY7LQSG.cjs.map +0 -1
- package/dist/chunk-TRLOXCPX.cjs.map +0 -1
- package/dist/models-dev-KSUL2WSE.js +0 -3
- package/dist/models-dev-N3BB7QC6.cjs +0 -12
- package/dist/netlify-5FZZLF2V.cjs +0 -12
- package/dist/netlify-YHUBX5AX.js +0 -3
- package/dist/provider-registry-52PKE45P.js +0 -3
- package/dist/provider-registry-YH7WKSYN.cjs +0 -40
|
@@ -6,9 +6,9 @@ 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 {
|
|
10
|
-
import { resolveModelConfig, ModelRouterEmbeddingModel, ModelRouterLanguageModel } from './chunk-CJHZXD3U.js';
|
|
9
|
+
import { resolveModelConfig, ModelRouterEmbeddingModel, ModelRouterLanguageModel } from './chunk-H4QQ6U2N.js';
|
|
11
10
|
import { MastraLLMV1 } from './chunk-EYLPPZIF.js';
|
|
11
|
+
import { noopLogger } from './chunk-PSCMWPLC.js';
|
|
12
12
|
import { EventEmitterPubSub } from './chunk-X2HAI3OX.js';
|
|
13
13
|
import { removeUndefinedValues, ensureToolProperties, makeCoreTool, createMastraProxy, deepMerge, generateEmptyFromSchema, selectFields, delay } from './chunk-K636CQJK.js';
|
|
14
14
|
import { resolveObservabilityContext, EntityType, createObservabilityContext, getRootExportSpan, getOrCreateSpan, wrapMastra, executeWithContext, executeWithContextSync } from './chunk-3PUUIEVX.js';
|
|
@@ -8816,7 +8816,7 @@ function createStepFromProcessor(processor) {
|
|
|
8816
8816
|
if (part && part.type.startsWith("data-") && !processor.processDataParts) {
|
|
8817
8817
|
return { ...passThrough, part };
|
|
8818
8818
|
}
|
|
8819
|
-
if (processor.processOutputStream) {
|
|
8819
|
+
if (processor.processOutputStream && part) {
|
|
8820
8820
|
const spanKey = `__outputStreamSpan_${processor.id}`;
|
|
8821
8821
|
const mutableState = processorState;
|
|
8822
8822
|
let processorSpan2 = mutableState[spanKey];
|
|
@@ -26455,7 +26455,8 @@ https://mastra.ai/en/docs/memory/overview`
|
|
|
26455
26455
|
}
|
|
26456
26456
|
const result = {
|
|
26457
26457
|
scope: om.scope,
|
|
26458
|
-
shareTokenBudget: om.shareTokenBudget
|
|
26458
|
+
shareTokenBudget: om.shareTokenBudget,
|
|
26459
|
+
retrieval: om.retrieval
|
|
26459
26460
|
};
|
|
26460
26461
|
const topModelId = extractModelIdString(om.model);
|
|
26461
26462
|
if (topModelId) {
|
|
@@ -26500,14 +26501,16 @@ var MockMemory = class extends MastraMemory {
|
|
|
26500
26501
|
storage,
|
|
26501
26502
|
enableWorkingMemory = false,
|
|
26502
26503
|
workingMemoryTemplate,
|
|
26503
|
-
enableMessageHistory = true
|
|
26504
|
+
enableMessageHistory = true,
|
|
26505
|
+
options
|
|
26504
26506
|
} = {}) {
|
|
26505
26507
|
super({
|
|
26506
26508
|
name: "mock",
|
|
26507
26509
|
storage: storage || new InMemoryStore(),
|
|
26508
26510
|
options: {
|
|
26509
|
-
|
|
26510
|
-
|
|
26511
|
+
...options,
|
|
26512
|
+
workingMemory: enableWorkingMemory ? { enabled: true, template: workingMemoryTemplate } : options?.workingMemory,
|
|
26513
|
+
lastMessages: enableMessageHistory ? options?.lastMessages ?? 10 : options?.lastMessages
|
|
26511
26514
|
}
|
|
26512
26515
|
});
|
|
26513
26516
|
this._hasOwnStorage = true;
|
|
@@ -26707,5 +26710,5 @@ var MockMemory = class extends MastraMemory {
|
|
|
26707
26710
|
};
|
|
26708
26711
|
|
|
26709
26712
|
export { Agent, 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, 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 };
|
|
26710
|
-
//# sourceMappingURL=chunk-
|
|
26711
|
-
//# sourceMappingURL=chunk-
|
|
26713
|
+
//# sourceMappingURL=chunk-P4GCK6VL.js.map
|
|
26714
|
+
//# sourceMappingURL=chunk-P4GCK6VL.js.map
|