@mastra/core 1.3.0-alpha.2 → 1.3.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 +291 -0
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/{chunk-JQNREL64.js → chunk-3MJCJLZS.js} +4 -4
- package/dist/{chunk-JQNREL64.js.map → chunk-3MJCJLZS.js.map} +1 -1
- package/dist/{chunk-OV7OOUUR.js → chunk-44SUGDBR.js} +2 -2
- package/dist/{chunk-OV7OOUUR.js.map → chunk-44SUGDBR.js.map} +1 -1
- package/dist/{chunk-STKNQDVA.js → chunk-57QAF2ZQ.js} +3 -3
- package/dist/{chunk-STKNQDVA.js.map → chunk-57QAF2ZQ.js.map} +1 -1
- package/dist/{chunk-GZD6443M.cjs → chunk-C3XU7ZDC.cjs} +2 -2
- package/dist/{chunk-GZD6443M.cjs.map → chunk-C3XU7ZDC.cjs.map} +1 -1
- package/dist/{chunk-U2CABSMC.cjs → chunk-EH6SAGEO.cjs} +48 -48
- package/dist/{chunk-U2CABSMC.cjs.map → chunk-EH6SAGEO.cjs.map} +1 -1
- package/dist/{chunk-6TZKQI4R.cjs → chunk-EUG4AON3.cjs} +7 -7
- package/dist/{chunk-6TZKQI4R.cjs.map → chunk-EUG4AON3.cjs.map} +1 -1
- package/dist/{chunk-MOOJ3H3C.js → chunk-JNE2ABVB.js} +3 -3
- package/dist/{chunk-MOOJ3H3C.js.map → chunk-JNE2ABVB.js.map} +1 -1
- package/dist/{chunk-KL2JPSRX.js → chunk-KUTU2YZF.js} +4 -4
- package/dist/{chunk-KL2JPSRX.js.map → chunk-KUTU2YZF.js.map} +1 -1
- package/dist/{chunk-XQVYEOI7.cjs → chunk-NCC45KOB.cjs} +5 -5
- package/dist/{chunk-XQVYEOI7.cjs.map → chunk-NCC45KOB.cjs.map} +1 -1
- package/dist/{chunk-VVD56FI4.js → chunk-PHYJYZ32.js} +6 -6
- package/dist/{chunk-VVD56FI4.js.map → chunk-PHYJYZ32.js.map} +1 -1
- package/dist/{chunk-ZRUTE56J.js → chunk-SIZEIYNH.js} +35 -33
- package/dist/chunk-SIZEIYNH.js.map +1 -0
- package/dist/{chunk-JU6K7UDX.cjs → chunk-TERSHTY5.cjs} +9 -9
- package/dist/{chunk-JU6K7UDX.cjs.map → chunk-TERSHTY5.cjs.map} +1 -1
- package/dist/{chunk-D5JZT6EK.cjs → chunk-UHVG25VW.cjs} +13 -13
- package/dist/{chunk-D5JZT6EK.cjs.map → chunk-UHVG25VW.cjs.map} +1 -1
- package/dist/{chunk-FLHFB23E.cjs → chunk-YNXIGRQE.cjs} +36 -34
- package/dist/chunk-YNXIGRQE.cjs.map +1 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +257 -257
- 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/index.cjs +4 -4
- package/dist/index.js +2 -2
- package/dist/loop/index.cjs +12 -12
- package/dist/loop/index.js +1 -1
- package/dist/loop/network/index.d.ts.map +1 -1
- package/dist/loop/network/validation.d.ts +8 -0
- package/dist/loop/network/validation.d.ts.map +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/processors/index.cjs +41 -41
- package/dist/processors/index.js +1 -1
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/storage/constants.cjs +27 -27
- package/dist/storage/constants.js +1 -1
- package/dist/storage/index.cjs +117 -117
- package/dist/storage/index.js +2 -2
- package/dist/storage/types.d.ts +2 -2
- 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 +25 -25
- package/dist/workflows/index.js +1 -1
- package/package.json +7 -7
- package/dist/chunk-FLHFB23E.cjs.map +0 -1
- package/dist/chunk-ZRUTE56J.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { extractLines, createWorkspaceTools, BM25Index } from './chunk-2GWTJFVM.js';
|
|
2
2
|
import { DefaultVoice } from './chunk-LHRHOPUC.js';
|
|
3
3
|
import { PUBSUB_SYMBOL, STREAM_FORMAT_SYMBOL } from './chunk-2QXNHEDL.js';
|
|
4
|
-
import { InMemoryStore } from './chunk-
|
|
4
|
+
import { InMemoryStore } from './chunk-JNE2ABVB.js';
|
|
5
5
|
import { MessageList, coreContentToString, DefaultGeneratedFile, DefaultGeneratedFileWithType } from './chunk-ILQXPZCD.js';
|
|
6
6
|
import { parsePartialJson, isDeepEqualData, stepCountIs } from './chunk-UTLWS5LV.js';
|
|
7
7
|
import { generateId, asSchema, jsonSchema, APICallError, tool } from './chunk-CPLRD2VP.js';
|
|
@@ -15634,37 +15634,39 @@ async function networkLoop({
|
|
|
15634
15634
|
});
|
|
15635
15635
|
}
|
|
15636
15636
|
const feedback = formatCompletionFeedback(completionResult, !!maxIterationReached);
|
|
15637
|
-
|
|
15638
|
-
|
|
15639
|
-
|
|
15640
|
-
|
|
15641
|
-
|
|
15642
|
-
|
|
15643
|
-
|
|
15644
|
-
|
|
15645
|
-
|
|
15646
|
-
|
|
15647
|
-
|
|
15648
|
-
|
|
15649
|
-
|
|
15650
|
-
|
|
15651
|
-
|
|
15652
|
-
|
|
15653
|
-
|
|
15654
|
-
|
|
15655
|
-
|
|
15656
|
-
|
|
15637
|
+
if (!validation?.suppressFeedback) {
|
|
15638
|
+
const memoryInstance = await routingAgent.getMemory({ requestContext });
|
|
15639
|
+
await saveMessagesWithProcessors(
|
|
15640
|
+
memoryInstance,
|
|
15641
|
+
[
|
|
15642
|
+
{
|
|
15643
|
+
id: generateId2(),
|
|
15644
|
+
type: "text",
|
|
15645
|
+
role: "assistant",
|
|
15646
|
+
content: {
|
|
15647
|
+
parts: [
|
|
15648
|
+
{
|
|
15649
|
+
type: "text",
|
|
15650
|
+
text: feedback
|
|
15651
|
+
}
|
|
15652
|
+
],
|
|
15653
|
+
format: 2,
|
|
15654
|
+
metadata: {
|
|
15655
|
+
mode: "network",
|
|
15656
|
+
completionResult: {
|
|
15657
|
+
passed: completionResult.complete
|
|
15658
|
+
}
|
|
15657
15659
|
}
|
|
15658
|
-
}
|
|
15659
|
-
|
|
15660
|
-
|
|
15661
|
-
|
|
15662
|
-
|
|
15663
|
-
|
|
15664
|
-
|
|
15665
|
-
|
|
15666
|
-
|
|
15667
|
-
|
|
15660
|
+
},
|
|
15661
|
+
createdAt: /* @__PURE__ */ new Date(),
|
|
15662
|
+
threadId: inputData.threadId || runIdToUse,
|
|
15663
|
+
resourceId: inputData.threadResourceId || networkName
|
|
15664
|
+
}
|
|
15665
|
+
],
|
|
15666
|
+
processorRunner,
|
|
15667
|
+
{ requestContext }
|
|
15668
|
+
);
|
|
15669
|
+
}
|
|
15668
15670
|
if (isComplete) {
|
|
15669
15671
|
return {
|
|
15670
15672
|
...inputData,
|
|
@@ -24871,5 +24873,5 @@ var MockMemory = class extends MastraMemory {
|
|
|
24871
24873
|
};
|
|
24872
24874
|
|
|
24873
24875
|
export { Agent, BaseProcessor, BatchPartsProcessor, ChunkFrom, DefaultExecutionEngine, EventEmitterPubSub, 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, augmentWithInit, cleanStepResult, cloneStep, cloneWorkflow, convertFullStreamChunkToMastra, convertFullStreamChunkToUIMessageStream, convertMastraChunkToAISDKv5, createDeprecationProxy, createScorer, createStep, createTimeTravelExecutionParams, createWorkflow, extractWorkingMemoryContent, extractWorkingMemoryTags, formatCheckFeedback, formatCompletionFeedback, formatValidationFeedback, generateFinalResult, generateStructuredFinalResult, getResumeLabelsByStepId, getStepIds, getStepResult, getThreadOMMetadata, getZodErrors, globalEmbeddingCache, hydrateSerializedStepErrors, isObservationalMemoryEnabled, isProcessor, isProcessorWorkflow, isSupportedLanguageModel, loop, mapVariable, memoryDefaultOptions, parseMemoryRequestContext, removeWorkingMemoryTags, resolveThreadIdFromArgs, runChecks, runCompletionScorers, runCountDeprecationMessage, runDefaultCompletionCheck, runValidation, setThreadOMMetadata, supportedLanguageModelSpecifications, tryGenerateWithJsonFallback, tryStreamWithJsonFallback, validateStepInput, validateStepRequestContext, validateStepResumeData, validateStepStateData, validateStepSuspendData };
|
|
24874
|
-
//# sourceMappingURL=chunk-
|
|
24875
|
-
//# sourceMappingURL=chunk-
|
|
24876
|
+
//# sourceMappingURL=chunk-SIZEIYNH.js.map
|
|
24877
|
+
//# sourceMappingURL=chunk-SIZEIYNH.js.map
|