@mastra/core 1.31.0-alpha.1 → 1.31.0-alpha.2
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 +6 -0
- package/dist/agent/durable/index.cjs +22 -22
- package/dist/agent/durable/index.js +4 -4
- package/dist/agent/index.cjs +9 -9
- package/dist/agent/index.js +1 -1
- package/dist/browser/index.cjs +2 -2
- package/dist/browser/index.js +1 -1
- package/dist/channels/index.cjs +4 -4
- package/dist/channels/index.js +1 -1
- package/dist/{chunk-K4RFAZEH.js → chunk-2ZK5IF7F.js} +3 -3
- package/dist/{chunk-K4RFAZEH.js.map → chunk-2ZK5IF7F.js.map} +1 -1
- package/dist/{chunk-WT2IVQBJ.js → chunk-56YX4QXF.js} +9 -9
- package/dist/{chunk-WT2IVQBJ.js.map → chunk-56YX4QXF.js.map} +1 -1
- package/dist/{chunk-JCSNUAZW.js → chunk-7K3DRXR5.js} +3 -3
- package/dist/{chunk-JCSNUAZW.js.map → chunk-7K3DRXR5.js.map} +1 -1
- package/dist/{chunk-DL4C5DUI.cjs → chunk-BBGULRCO.cjs} +9 -9
- package/dist/{chunk-DL4C5DUI.cjs.map → chunk-BBGULRCO.cjs.map} +1 -1
- package/dist/{chunk-YVTA4K6K.js → chunk-CVPDCNSV.js} +8 -8
- package/dist/{chunk-YVTA4K6K.js.map → chunk-CVPDCNSV.js.map} +1 -1
- package/dist/{chunk-CF4OVR4V.cjs → chunk-DOKVBCA6.cjs} +389 -389
- package/dist/{chunk-CF4OVR4V.cjs.map → chunk-DOKVBCA6.cjs.map} +1 -1
- package/dist/{chunk-GYTX6IH2.cjs → chunk-GM5PX2CG.cjs} +224 -224
- package/dist/{chunk-GYTX6IH2.cjs.map → chunk-GM5PX2CG.cjs.map} +1 -1
- package/dist/{chunk-5D3IKSJ3.js → chunk-HQ5T3ORE.js} +6 -6
- package/dist/{chunk-5D3IKSJ3.js.map → chunk-HQ5T3ORE.js.map} +1 -1
- package/dist/{chunk-ZFAQVP7L.js → chunk-IXX6CCDW.js} +4 -4
- package/dist/{chunk-ZFAQVP7L.js.map → chunk-IXX6CCDW.js.map} +1 -1
- package/dist/{chunk-ATWCWU4A.cjs → chunk-JGRV2X4U.cjs} +3 -3
- package/dist/{chunk-ATWCWU4A.cjs.map → chunk-JGRV2X4U.cjs.map} +1 -1
- package/dist/{chunk-OS6YC5Q4.cjs → chunk-JHS4KPNK.cjs} +5 -5
- package/dist/{chunk-OS6YC5Q4.cjs.map → chunk-JHS4KPNK.cjs.map} +1 -1
- package/dist/{chunk-EFCRYCP4.cjs → chunk-N6L3UFHQ.cjs} +3 -3
- package/dist/{chunk-EFCRYCP4.cjs.map → chunk-N6L3UFHQ.cjs.map} +1 -1
- package/dist/{chunk-LAPVI43X.cjs → chunk-NJPEAYX3.cjs} +20 -20
- package/dist/{chunk-LAPVI43X.cjs.map → chunk-NJPEAYX3.cjs.map} +1 -1
- package/dist/{chunk-4GCGRFND.js → chunk-NWMUCSF3.js} +4 -4
- package/dist/{chunk-4GCGRFND.js.map → chunk-NWMUCSF3.js.map} +1 -1
- package/dist/{chunk-V5IWNIFA.cjs → chunk-PMPEPPEM.cjs} +18 -17
- package/dist/chunk-PMPEPPEM.cjs.map +1 -0
- package/dist/{chunk-VL3337EG.js → chunk-Q6ZGFUVB.js} +3 -3
- package/dist/{chunk-VL3337EG.js.map → chunk-Q6ZGFUVB.js.map} +1 -1
- package/dist/{chunk-FPWDEJ5W.cjs → chunk-QIFCHCII.cjs} +18 -18
- package/dist/{chunk-FPWDEJ5W.cjs.map → chunk-QIFCHCII.cjs.map} +1 -1
- package/dist/{chunk-GBQCYCSH.cjs → chunk-RB5GPVWV.cjs} +59 -59
- package/dist/{chunk-GBQCYCSH.cjs.map → chunk-RB5GPVWV.cjs.map} +1 -1
- package/dist/{chunk-4SXW4BMV.js → chunk-RPNNSCCV.js} +8 -7
- package/dist/chunk-RPNNSCCV.js.map +1 -0
- package/dist/{chunk-DY3EL2XK.cjs → chunk-RRYFFH4I.cjs} +7 -7
- package/dist/{chunk-DY3EL2XK.cjs.map → chunk-RRYFFH4I.cjs.map} +1 -1
- package/dist/{chunk-MVVXAPBL.js → chunk-TBGATHGK.js} +3 -3
- package/dist/{chunk-MVVXAPBL.js.map → chunk-TBGATHGK.js.map} +1 -1
- package/dist/{chunk-V5E2OIV6.cjs → chunk-VKILDR4Y.cjs} +6 -6
- package/dist/{chunk-V5E2OIV6.cjs.map → chunk-VKILDR4Y.cjs.map} +1 -1
- package/dist/{chunk-3K3ANRQO.js → chunk-VRSJM3W2.js} +3 -3
- package/dist/{chunk-3K3ANRQO.js.map → chunk-VRSJM3W2.js.map} +1 -1
- package/dist/{chunk-CTG4B5FM.js → chunk-W6637N6M.js} +4 -4
- package/dist/{chunk-CTG4B5FM.js.map → chunk-W6637N6M.js.map} +1 -1
- package/dist/datasets/index.cjs +17 -17
- package/dist/datasets/index.js +2 -2
- package/dist/docs/SKILL.md +2 -1
- package/dist/docs/assets/SOURCE_MAP.json +225 -225
- package/dist/docs/references/reference-tools-perplexity.md +155 -0
- package/dist/docs/references/reference.md +1 -0
- package/dist/evals/index.cjs +6 -6
- 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 +20 -20
- 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/mastra-GU4WOJJ6.js +3 -0
- package/dist/{mastra-SGOF2FOS.js.map → mastra-GU4WOJJ6.js.map} +1 -1
- package/dist/mastra-HZ6MUPHV.cjs +12 -0
- package/dist/{mastra-CGB7BBSZ.cjs.map → mastra-HZ6MUPHV.cjs.map} +1 -1
- package/dist/memory/index.cjs +19 -19
- package/dist/memory/index.js +1 -1
- package/dist/models-dev-2U52GDNO.cjs +12 -0
- package/dist/{models-dev-IOEEN3JP.cjs.map → models-dev-2U52GDNO.cjs.map} +1 -1
- package/dist/models-dev-GBYVKYLD.js +3 -0
- package/dist/{models-dev-TJARBWXY.js.map → models-dev-GBYVKYLD.js.map} +1 -1
- package/dist/netlify-26S2YWQC.js +3 -0
- package/dist/{netlify-ZXYH6R7F.js.map → netlify-26S2YWQC.js.map} +1 -1
- package/dist/netlify-JNHXGWXV.cjs +12 -0
- package/dist/{netlify-AQ2SWPGA.cjs.map → netlify-JNHXGWXV.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 +49 -49
- package/dist/processors/index.js +1 -1
- package/dist/processors/processors/batch-parts.d.ts.map +1 -1
- package/dist/provider-registry-2V4UUBCN.cjs +44 -0
- package/dist/{provider-registry-LFSFCOQ6.cjs.map → provider-registry-2V4UUBCN.cjs.map} +1 -1
- package/dist/provider-registry-ZOKLGIOR.js +3 -0
- package/dist/{provider-registry-E2XHEEJ2.js.map → provider-registry-ZOKLGIOR.js.map} +1 -1
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/runner-DCM7XKBG.cjs +16 -0
- package/dist/{runner-LCX6F5B5.cjs.map → runner-DCM7XKBG.cjs.map} +1 -1
- package/dist/runner-LXMA6PBE.js +3 -0
- package/dist/{runner-3WGI2L4I.js.map → runner-LXMA6PBE.js.map} +1 -1
- package/dist/storage/index.cjs +59 -59
- package/dist/storage/index.js +2 -2
- package/dist/stream/index.cjs +11 -11
- 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 +6 -6
- package/dist/chunk-4SXW4BMV.js.map +0 -1
- package/dist/chunk-V5IWNIFA.cjs.map +0 -1
- package/dist/mastra-CGB7BBSZ.cjs +0 -12
- package/dist/mastra-SGOF2FOS.js +0 -3
- package/dist/models-dev-IOEEN3JP.cjs +0 -12
- package/dist/models-dev-TJARBWXY.js +0 -3
- package/dist/netlify-AQ2SWPGA.cjs +0 -12
- package/dist/netlify-ZXYH6R7F.js +0 -3
- package/dist/provider-registry-E2XHEEJ2.js +0 -3
- package/dist/provider-registry-LFSFCOQ6.cjs +0 -44
- package/dist/runner-3WGI2L4I.js +0 -3
- package/dist/runner-LCX6F5B5.cjs +0 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @mastra/core
|
|
2
2
|
|
|
3
|
+
## 1.31.0-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixed BatchPartsProcessor using a hardcoded id in batched text-delta chunks. The real message id and runId are now preserved from the original chunks, preventing AI SDK UIMessage stream from dropping batched deltas. ([#14974](https://github.com/mastra-ai/mastra/pull/14974))
|
|
8
|
+
|
|
3
9
|
## 1.31.0-alpha.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkW7D53JMX_cjs = require('../../chunk-W7D53JMX.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkPMPEPPEM_cjs = require('../../chunk-PMPEPPEM.cjs');
|
|
5
5
|
var chunkZCBG4ZQT_cjs = require('../../chunk-ZCBG4ZQT.cjs');
|
|
6
6
|
var chunk6K4BQ2JS_cjs = require('../../chunk-6K4BQ2JS.cjs');
|
|
7
7
|
var chunkHM6XXOV2_cjs = require('../../chunk-HM6XXOV2.cjs');
|
|
8
|
-
var
|
|
8
|
+
var chunkDOKVBCA6_cjs = require('../../chunk-DOKVBCA6.cjs');
|
|
9
9
|
var chunkGLBBBSS5_cjs = require('../../chunk-GLBBBSS5.cjs');
|
|
10
10
|
var chunkYNE3ZCU5_cjs = require('../../chunk-YNE3ZCU5.cjs');
|
|
11
11
|
var chunkIBQB7RSW_cjs = require('../../chunk-IBQB7RSW.cjs');
|
|
@@ -545,7 +545,7 @@ async function prepareForDurableExecution(options) {
|
|
|
545
545
|
threadExists = true;
|
|
546
546
|
requestContext.set("MastraMemory", { thread: threadObject, resourceId, memoryConfig: memoryConfig2 });
|
|
547
547
|
}
|
|
548
|
-
const { ProcessorRunner: ProcessorRunner2 } = await import('../../runner-
|
|
548
|
+
const { ProcessorRunner: ProcessorRunner2 } = await import('../../runner-DCM7XKBG.cjs');
|
|
549
549
|
const runner = new ProcessorRunner2({
|
|
550
550
|
inputProcessors,
|
|
551
551
|
outputProcessors,
|
|
@@ -595,7 +595,7 @@ async function prepareForDurableExecution(options) {
|
|
|
595
595
|
}
|
|
596
596
|
const memory = await typedAgent.getMemory({ requestContext });
|
|
597
597
|
const memoryConfig = execOptions?.memory?.options;
|
|
598
|
-
const saveQueueManager = memory ? new
|
|
598
|
+
const saveQueueManager = memory ? new chunkPMPEPPEM_cjs.SaveQueueManager({
|
|
599
599
|
logger,
|
|
600
600
|
memory
|
|
601
601
|
}) : void 0;
|
|
@@ -956,7 +956,7 @@ function createDurableAgentStream(options) {
|
|
|
956
956
|
}
|
|
957
957
|
controller = null;
|
|
958
958
|
};
|
|
959
|
-
const output = new
|
|
959
|
+
const output = new chunkPMPEPPEM_cjs.MastraModelOutput({
|
|
960
960
|
model,
|
|
961
961
|
stream,
|
|
962
962
|
messageList,
|
|
@@ -1188,7 +1188,7 @@ var BG_CHECK_STEP_ID = `${DurableStepIds.AGENTIC_EXECUTION}-bg-task-check`;
|
|
|
1188
1188
|
var bgCheckInputSchema = zod.z.any();
|
|
1189
1189
|
var bgCheckOutputSchema = zod.z.any();
|
|
1190
1190
|
function createDurableBackgroundTaskCheckStep() {
|
|
1191
|
-
return
|
|
1191
|
+
return chunkPMPEPPEM_cjs.createStep({
|
|
1192
1192
|
id: BG_CHECK_STEP_ID,
|
|
1193
1193
|
inputSchema: bgCheckInputSchema,
|
|
1194
1194
|
outputSchema: bgCheckOutputSchema,
|
|
@@ -1317,7 +1317,7 @@ async function resolveRuntimeDependencies(options) {
|
|
|
1317
1317
|
}
|
|
1318
1318
|
let saveQueueManager;
|
|
1319
1319
|
if (memory) {
|
|
1320
|
-
saveQueueManager = new
|
|
1320
|
+
saveQueueManager = new chunkPMPEPPEM_cjs.SaveQueueManager({
|
|
1321
1321
|
logger: mastra?.getLogger?.(),
|
|
1322
1322
|
memory
|
|
1323
1323
|
});
|
|
@@ -1397,9 +1397,9 @@ async function resolveModelFromConfig(config, mastra) {
|
|
|
1397
1397
|
const requestContext = new chunkKF4FCWWL_cjs.RequestContext();
|
|
1398
1398
|
const modelConfigString = config.originalConfig ?? `${config.provider}/${config.modelId}`;
|
|
1399
1399
|
if (typeof modelConfigString === "string") {
|
|
1400
|
-
return await
|
|
1400
|
+
return await chunkDOKVBCA6_cjs.resolveModelConfig(modelConfigString, requestContext, mastra);
|
|
1401
1401
|
}
|
|
1402
|
-
return await
|
|
1402
|
+
return await chunkDOKVBCA6_cjs.resolveModelConfig(
|
|
1403
1403
|
modelConfigString,
|
|
1404
1404
|
requestContext,
|
|
1405
1405
|
mastra
|
|
@@ -1472,7 +1472,7 @@ var durableLLMOutputSchema = zod.z.object({
|
|
|
1472
1472
|
stepIndex: zod.z.number().optional()
|
|
1473
1473
|
});
|
|
1474
1474
|
function createDurableLLMExecutionStep(_options) {
|
|
1475
|
-
return
|
|
1475
|
+
return chunkPMPEPPEM_cjs.createStep({
|
|
1476
1476
|
id: DurableStepIds.LLM_EXECUTION,
|
|
1477
1477
|
inputSchema: durableLLMInputSchema,
|
|
1478
1478
|
outputSchema: durableLLMOutputSchema,
|
|
@@ -1510,7 +1510,7 @@ function createDurableLLMExecutionStep(_options) {
|
|
|
1510
1510
|
for (let attempt = 0; attempt <= maxRetries; attempt++) {
|
|
1511
1511
|
try {
|
|
1512
1512
|
const model = !hasModelList ? resolvedModel : resolvedModelList?.find((m) => m.id === modelEntry.id)?.model ?? await resolveModelFromListEntry(modelEntry, mastra);
|
|
1513
|
-
if (!
|
|
1513
|
+
if (!chunkPMPEPPEM_cjs.isSupportedLanguageModel(model)) {
|
|
1514
1514
|
const hint = model.__metadataOnly ? " The model could not be resolved from the run registry or Mastra instance." : "";
|
|
1515
1515
|
throw new Error(
|
|
1516
1516
|
`Unsupported model version: ${model.specificationVersion}. Model must implement doStream.${hint}`
|
|
@@ -1540,7 +1540,7 @@ function createDurableLLMExecutionStep(_options) {
|
|
|
1540
1540
|
await emitChunkEvent(pubsub, runId, data);
|
|
1541
1541
|
}
|
|
1542
1542
|
} : void 0;
|
|
1543
|
-
const runner = new
|
|
1543
|
+
const runner = new chunkPMPEPPEM_cjs.ProcessorRunner({
|
|
1544
1544
|
inputProcessors: registryEntry.inputProcessors,
|
|
1545
1545
|
outputProcessors: registryEntry.outputProcessors ?? [],
|
|
1546
1546
|
errorProcessors: registryEntry.errorProcessors ?? [],
|
|
@@ -1588,7 +1588,7 @@ function createDurableLLMExecutionStep(_options) {
|
|
|
1588
1588
|
let usage = { inputTokens: 0, outputTokens: 0, totalTokens: 0 };
|
|
1589
1589
|
let responseMetadata = {};
|
|
1590
1590
|
modelSpanTracker?.startStep();
|
|
1591
|
-
const modelResult =
|
|
1591
|
+
const modelResult = chunkPMPEPPEM_cjs.execute({
|
|
1592
1592
|
runId,
|
|
1593
1593
|
model: currentModel,
|
|
1594
1594
|
inputMessages,
|
|
@@ -1615,7 +1615,7 @@ function createDurableLLMExecutionStep(_options) {
|
|
|
1615
1615
|
}
|
|
1616
1616
|
}
|
|
1617
1617
|
});
|
|
1618
|
-
const outputStream = new
|
|
1618
|
+
const outputStream = new chunkPMPEPPEM_cjs.MastraModelOutput({
|
|
1619
1619
|
model: {
|
|
1620
1620
|
modelId: currentModel.modelId,
|
|
1621
1621
|
provider: currentModel.provider,
|
|
@@ -1796,7 +1796,7 @@ function createDurableLLMExecutionStep(_options) {
|
|
|
1796
1796
|
const registryEntry = globalRunRegistry.get(runId);
|
|
1797
1797
|
if (registryEntry?.errorProcessors?.length) {
|
|
1798
1798
|
try {
|
|
1799
|
-
const runner = new
|
|
1799
|
+
const runner = new chunkPMPEPPEM_cjs.ProcessorRunner({
|
|
1800
1800
|
inputProcessors: registryEntry.inputProcessors ?? [],
|
|
1801
1801
|
outputProcessors: registryEntry.outputProcessors ?? [],
|
|
1802
1802
|
errorProcessors: registryEntry.errorProcessors,
|
|
@@ -1882,7 +1882,7 @@ async function flushMessagesBeforeSuspension({
|
|
|
1882
1882
|
}
|
|
1883
1883
|
}
|
|
1884
1884
|
function createDurableToolCallStep() {
|
|
1885
|
-
return
|
|
1885
|
+
return chunkPMPEPPEM_cjs.createStep({
|
|
1886
1886
|
id: DurableStepIds.TOOL_CALL,
|
|
1887
1887
|
inputSchema: durableToolCallInputSchema,
|
|
1888
1888
|
outputSchema: durableToolCallOutputSchema,
|
|
@@ -2347,7 +2347,7 @@ var durableLLMMappingOutputSchema = zod.z.object({
|
|
|
2347
2347
|
processorRetryFeedback: zod.z.string().optional()
|
|
2348
2348
|
});
|
|
2349
2349
|
function createDurableLLMMappingStep() {
|
|
2350
|
-
return
|
|
2350
|
+
return chunkPMPEPPEM_cjs.createStep({
|
|
2351
2351
|
id: DurableStepIds.LLM_MAPPING,
|
|
2352
2352
|
inputSchema: durableLLMMappingInputSchema,
|
|
2353
2353
|
outputSchema: durableLLMMappingOutputSchema,
|
|
@@ -2454,7 +2454,7 @@ function createDurableAgenticWorkflow(options) {
|
|
|
2454
2454
|
const toolCallStep = createDurableToolCallStep();
|
|
2455
2455
|
const llmMappingStep = createDurableLLMMappingStep();
|
|
2456
2456
|
const backgroundTaskCheckStep = createDurableBackgroundTaskCheckStep();
|
|
2457
|
-
const singleIterationWorkflow =
|
|
2457
|
+
const singleIterationWorkflow = chunkPMPEPPEM_cjs.createWorkflow({
|
|
2458
2458
|
id: DurableStepIds.AGENTIC_EXECUTION,
|
|
2459
2459
|
inputSchema: iterationStateSchema,
|
|
2460
2460
|
outputSchema: iterationStateSchema,
|
|
@@ -2517,7 +2517,7 @@ function createDurableAgenticWorkflow(options) {
|
|
|
2517
2517
|
},
|
|
2518
2518
|
{ id: "update-iteration-state" }
|
|
2519
2519
|
).commit();
|
|
2520
|
-
return
|
|
2520
|
+
return chunkPMPEPPEM_cjs.createWorkflow({
|
|
2521
2521
|
id: DurableStepIds.AGENTIC_LOOP,
|
|
2522
2522
|
inputSchema: durableAgenticInputSchema,
|
|
2523
2523
|
outputSchema: durableAgenticOutputSchema,
|
|
@@ -2560,7 +2560,7 @@ function createDurableAgenticWorkflow(options) {
|
|
|
2560
2560
|
const registryEntry = globalRunRegistry.get(state.runId);
|
|
2561
2561
|
if (registryEntry?.outputProcessors?.length) {
|
|
2562
2562
|
try {
|
|
2563
|
-
const { ProcessorRunner: ProcessorRunner2 } = await import('../../runner-
|
|
2563
|
+
const { ProcessorRunner: ProcessorRunner2 } = await import('../../runner-DCM7XKBG.cjs');
|
|
2564
2564
|
const runner = new ProcessorRunner2({
|
|
2565
2565
|
inputProcessors: registryEntry.inputProcessors ?? [],
|
|
2566
2566
|
outputProcessors: registryEntry.outputProcessors,
|
|
@@ -2658,7 +2658,7 @@ function createDurableAgenticWorkflow(options) {
|
|
|
2658
2658
|
scorer,
|
|
2659
2659
|
sampling
|
|
2660
2660
|
};
|
|
2661
|
-
|
|
2661
|
+
chunkPMPEPPEM_cjs.runScorer({
|
|
2662
2662
|
runId: initData.runId,
|
|
2663
2663
|
scorerId: scorerKey,
|
|
2664
2664
|
scorerObject,
|
|
@@ -2691,7 +2691,7 @@ function createDurableAgenticWorkflow(options) {
|
|
|
2691
2691
|
}
|
|
2692
2692
|
|
|
2693
2693
|
// src/agent/durable/durable-agent.ts
|
|
2694
|
-
var DurableAgent = class extends
|
|
2694
|
+
var DurableAgent = class extends chunkPMPEPPEM_cjs.Agent {
|
|
2695
2695
|
/** The wrapped agent */
|
|
2696
2696
|
#wrappedAgent;
|
|
2697
2697
|
/** Registry for per-run non-serializable state */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CachingPubSub } from '../../chunk-RRJNDPUT.js';
|
|
2
|
-
import { SaveQueueManager, MastraModelOutput, createStep, isSupportedLanguageModel, ProcessorRunner, execute, createWorkflow, runScorer, Agent } from '../../chunk-
|
|
2
|
+
import { SaveQueueManager, MastraModelOutput, createStep, isSupportedLanguageModel, ProcessorRunner, execute, createWorkflow, runScorer, Agent } from '../../chunk-RPNNSCCV.js';
|
|
3
3
|
import { PUBSUB_SYMBOL } from '../../chunk-2QXNHEDL.js';
|
|
4
4
|
import { MessageList } from '../../chunk-MXMVYCCO.js';
|
|
5
5
|
import { EventEmitterPubSub } from '../../chunk-4E5FOY4E.js';
|
|
6
|
-
import { resolveModelConfig } from '../../chunk-
|
|
6
|
+
import { resolveModelConfig } from '../../chunk-HQ5T3ORE.js';
|
|
7
7
|
import { InMemoryServerCache } from '../../chunk-CH66BRBG.js';
|
|
8
8
|
import { deepMerge } from '../../chunk-ARNDQ2SQ.js';
|
|
9
9
|
import { createObservabilityContext } from '../../chunk-SR7NB44E.js';
|
|
@@ -543,7 +543,7 @@ async function prepareForDurableExecution(options) {
|
|
|
543
543
|
threadExists = true;
|
|
544
544
|
requestContext.set("MastraMemory", { thread: threadObject, resourceId, memoryConfig: memoryConfig2 });
|
|
545
545
|
}
|
|
546
|
-
const { ProcessorRunner: ProcessorRunner2 } = await import('../../runner-
|
|
546
|
+
const { ProcessorRunner: ProcessorRunner2 } = await import('../../runner-LXMA6PBE.js');
|
|
547
547
|
const runner = new ProcessorRunner2({
|
|
548
548
|
inputProcessors,
|
|
549
549
|
outputProcessors,
|
|
@@ -2558,7 +2558,7 @@ function createDurableAgenticWorkflow(options) {
|
|
|
2558
2558
|
const registryEntry = globalRunRegistry.get(state.runId);
|
|
2559
2559
|
if (registryEntry?.outputProcessors?.length) {
|
|
2560
2560
|
try {
|
|
2561
|
-
const { ProcessorRunner: ProcessorRunner2 } = await import('../../runner-
|
|
2561
|
+
const { ProcessorRunner: ProcessorRunner2 } = await import('../../runner-LXMA6PBE.js');
|
|
2562
2562
|
const runner = new ProcessorRunner2({
|
|
2563
2563
|
inputProcessors: registryEntry.inputProcessors ?? [],
|
|
2564
2564
|
outputProcessors: registryEntry.outputProcessors,
|
package/dist/agent/index.cjs
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkPMPEPPEM_cjs = require('../chunk-PMPEPPEM.cjs');
|
|
4
4
|
var chunk6K4BQ2JS_cjs = require('../chunk-6K4BQ2JS.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 chunkPMPEPPEM_cjs.Agent; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "TripWire", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkPMPEPPEM_cjs.TripWire; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "isDurableAgentLike", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkPMPEPPEM_cjs.isDurableAgentLike; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "isSupportedLanguageModel", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkPMPEPPEM_cjs.isSupportedLanguageModel; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "resolveThreadIdFromArgs", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkPMPEPPEM_cjs.resolveThreadIdFromArgs; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "supportedLanguageModelSpecifications", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkPMPEPPEM_cjs.supportedLanguageModelSpecifications; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "tryGenerateWithJsonFallback", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkPMPEPPEM_cjs.tryGenerateWithJsonFallback; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "tryStreamWithJsonFallback", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkPMPEPPEM_cjs.tryStreamWithJsonFallback; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "MessageList", {
|
|
41
41
|
enumerable: true,
|
package/dist/agent/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Agent, TripWire, isDurableAgentLike, isSupportedLanguageModel, resolveThreadIdFromArgs, supportedLanguageModelSpecifications, tryGenerateWithJsonFallback, tryStreamWithJsonFallback } from '../chunk-
|
|
1
|
+
export { Agent, TripWire, isDurableAgentLike, isSupportedLanguageModel, resolveThreadIdFromArgs, supportedLanguageModelSpecifications, tryGenerateWithJsonFallback, tryStreamWithJsonFallback } from '../chunk-RPNNSCCV.js';
|
|
2
2
|
export { MessageList, TypeDetector, aiV5ModelMessageToV2PromptMessage, convertMessages } from '../chunk-MXMVYCCO.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/browser/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkPMPEPPEM_cjs = require('../chunk-PMPEPPEM.cjs');
|
|
4
4
|
var chunkYQR772OH_cjs = require('../chunk-YQR772OH.cjs');
|
|
5
5
|
var chunkFCQNDFEW_cjs = require('../chunk-FCQNDFEW.cjs');
|
|
6
6
|
var chunk7GW2TQXP_cjs = require('../chunk-7GW2TQXP.cjs');
|
|
@@ -1191,7 +1191,7 @@ To fix this, either:
|
|
|
1191
1191
|
*/
|
|
1192
1192
|
getInputProcessors(configuredProcessors = []) {
|
|
1193
1193
|
const hasProcessor = configuredProcessors.some(
|
|
1194
|
-
(p) => !
|
|
1194
|
+
(p) => !chunkPMPEPPEM_cjs.isProcessorWorkflow(p) && "id" in p && p.id === "browser-context"
|
|
1195
1195
|
);
|
|
1196
1196
|
if (hasProcessor) return [];
|
|
1197
1197
|
return [new BrowserContextProcessor()];
|
package/dist/browser/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isProcessorWorkflow } from '../chunk-
|
|
1
|
+
import { isProcessorWorkflow } from '../chunk-RPNNSCCV.js';
|
|
2
2
|
export { BrowserCliHandler, browserCliHandler } from '../chunk-KGL33Q5K.js';
|
|
3
3
|
import { MastraBase } from '../chunk-WENZPAHS.js';
|
|
4
4
|
import { RegisteredLogger } from '../chunk-DBBWTK24.js';
|
package/dist/channels/index.cjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkPMPEPPEM_cjs = require('../chunk-PMPEPPEM.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "AgentChannels", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkPMPEPPEM_cjs.AgentChannels; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "ChatChannelProcessor", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkPMPEPPEM_cjs.ChatChannelProcessor; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "MastraStateAdapter", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkPMPEPPEM_cjs.MastraStateAdapter; }
|
|
18
18
|
});
|
|
19
19
|
//# sourceMappingURL=index.cjs.map
|
|
20
20
|
//# sourceMappingURL=index.cjs.map
|
package/dist/channels/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { lazySchema, zodSchema, createJsonErrorResponseHandler2, lazySchema2, zodSchema2, createProviderToolFactory, createProviderToolFactoryWithOutputSchema, withoutTrailingSlash, withoutTrailingSlash2, OpenAICompatibleChatLanguageModel, generateId2, withUserAgentSuffix, loadApiKey, createJsonErrorResponseHandler, parseProviderOptions, postJsonToApi, createJsonResponseHandler, combineHeaders, generateId, createEventSourceResponseHandler, InvalidResponseDataError, isParsableJson, parseProviderOptions2, injectJsonInstructionIntoMessages, postJsonToApi2, createJsonResponseHandler2, combineHeaders2, createEventSourceResponseHandler2, withUserAgentSuffix2, loadApiKey2, APICallError2 as APICallError2$1, extractResponseHeaders, safeParseJSON, UnsupportedFunctionalityError, InvalidResponseDataError2, isParsableJson2, UnsupportedFunctionalityError2, convertToBase642, NoSuchModelError, OpenAICompatibleCompletionLanguageModel, OpenAICompatibleEmbeddingModel, NoSuchModelError2, MastraModelGateway, EXCLUDED_PROVIDERS, PROVIDERS_WITH_INSTALLED_PACKAGES, createAnthropic, MASTRA_USER_AGENT, createOpenAI, createGoogleGenerativeAI, createOpenAICompatible, TooManyEmbeddingValuesForCallError2, convertBase64ToUint8Array2, mediaTypeToExtension2, postFormDataToApi2, convertImageModelFileToDataUri, getFromApi, createBinaryResponseHandler2, createStatusCodeErrorResponseHandler, convertUint8ArrayToBase642, AISDKError, delay, validateTypes2 as validateTypes2$1, convertUint8ArrayToBase64 } from './chunk-
|
|
1
|
+
import { lazySchema, zodSchema, createJsonErrorResponseHandler2, lazySchema2, zodSchema2, createProviderToolFactory, createProviderToolFactoryWithOutputSchema, withoutTrailingSlash, withoutTrailingSlash2, OpenAICompatibleChatLanguageModel, generateId2, withUserAgentSuffix, loadApiKey, createJsonErrorResponseHandler, parseProviderOptions, postJsonToApi, createJsonResponseHandler, combineHeaders, generateId, createEventSourceResponseHandler, InvalidResponseDataError, isParsableJson, parseProviderOptions2, injectJsonInstructionIntoMessages, postJsonToApi2, createJsonResponseHandler2, combineHeaders2, createEventSourceResponseHandler2, withUserAgentSuffix2, loadApiKey2, APICallError2 as APICallError2$1, extractResponseHeaders, safeParseJSON, UnsupportedFunctionalityError, InvalidResponseDataError2, isParsableJson2, UnsupportedFunctionalityError2, convertToBase642, NoSuchModelError, OpenAICompatibleCompletionLanguageModel, OpenAICompatibleEmbeddingModel, NoSuchModelError2, MastraModelGateway, EXCLUDED_PROVIDERS, PROVIDERS_WITH_INSTALLED_PACKAGES, createAnthropic, MASTRA_USER_AGENT, createOpenAI, createGoogleGenerativeAI, createOpenAICompatible, TooManyEmbeddingValuesForCallError2, convertBase64ToUint8Array2, mediaTypeToExtension2, postFormDataToApi2, convertImageModelFileToDataUri, getFromApi, createBinaryResponseHandler2, createStatusCodeErrorResponseHandler, convertUint8ArrayToBase642, AISDKError, delay, validateTypes2 as validateTypes2$1, convertUint8ArrayToBase64 } from './chunk-VRSJM3W2.js';
|
|
2
2
|
import { createGatewayProvider } from './chunk-SJ4Q5B7O.js';
|
|
3
3
|
import { z } from 'zod/v4';
|
|
4
4
|
|
|
@@ -9048,5 +9048,5 @@ var ModelsDevGateway = class extends MastraModelGateway {
|
|
|
9048
9048
|
};
|
|
9049
9049
|
|
|
9050
9050
|
export { ModelsDevGateway, createOpenRouter, parseModelRouterId };
|
|
9051
|
-
//# sourceMappingURL=chunk-
|
|
9052
|
-
//# sourceMappingURL=chunk-
|
|
9051
|
+
//# sourceMappingURL=chunk-2ZK5IF7F.js.map
|
|
9052
|
+
//# sourceMappingURL=chunk-2ZK5IF7F.js.map
|