@mastra/core 1.33.0-alpha.0 → 1.33.0-alpha.1
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-ELPIVNLY.cjs → chunk-2YN2GWML.cjs} +3 -3
- package/dist/{chunk-ELPIVNLY.cjs.map → chunk-2YN2GWML.cjs.map} +1 -1
- package/dist/{chunk-7HMC3PTA.js → chunk-3OIXD6QZ.js} +3 -3
- package/dist/{chunk-7HMC3PTA.js.map → chunk-3OIXD6QZ.js.map} +1 -1
- package/dist/{chunk-ZQYBA6EJ.js → chunk-5AFWTTES.js} +4 -4
- package/dist/{chunk-ZQYBA6EJ.js.map → chunk-5AFWTTES.js.map} +1 -1
- package/dist/{chunk-MHCXJ3TE.js → chunk-5LXIX7FZ.js} +4 -4
- package/dist/{chunk-MHCXJ3TE.js.map → chunk-5LXIX7FZ.js.map} +1 -1
- package/dist/{chunk-HJ2J4LU6.js → chunk-7M65H4UA.js} +4 -4
- package/dist/{chunk-HJ2J4LU6.js.map → chunk-7M65H4UA.js.map} +1 -1
- package/dist/{chunk-XXKOQCB4.cjs → chunk-AU4KVBT6.cjs} +9 -3
- package/dist/chunk-AU4KVBT6.cjs.map +1 -0
- package/dist/{chunk-3FMJLIPP.cjs → chunk-BSC4D3AA.cjs} +22 -22
- package/dist/{chunk-3FMJLIPP.cjs.map → chunk-BSC4D3AA.cjs.map} +1 -1
- package/dist/{chunk-EGOV6KSK.cjs → chunk-C6M5HBBX.cjs} +28 -20
- package/dist/chunk-C6M5HBBX.cjs.map +1 -0
- package/dist/{chunk-IY4PIU4H.cjs → chunk-CHGGDYI6.cjs} +389 -389
- package/dist/{chunk-IY4PIU4H.cjs.map → chunk-CHGGDYI6.cjs.map} +1 -1
- package/dist/{chunk-6HX3NKCA.js → chunk-CJHHPVVU.js} +9 -3
- package/dist/chunk-CJHHPVVU.js.map +1 -0
- package/dist/{chunk-B7CR6B45.cjs → chunk-DV3G5TZJ.cjs} +16 -16
- package/dist/{chunk-B7CR6B45.cjs.map → chunk-DV3G5TZJ.cjs.map} +1 -1
- package/dist/{chunk-UBFMEMB6.cjs → chunk-GB2CQKRS.cjs} +9 -9
- package/dist/{chunk-UBFMEMB6.cjs.map → chunk-GB2CQKRS.cjs.map} +1 -1
- package/dist/{chunk-P7B34JVP.js → chunk-GQDJFBVF.js} +6 -6
- package/dist/{chunk-P7B34JVP.js.map → chunk-GQDJFBVF.js.map} +1 -1
- package/dist/{chunk-OX22TFZC.cjs → chunk-GVVA4JRD.cjs} +10 -10
- package/dist/{chunk-OX22TFZC.cjs.map → chunk-GVVA4JRD.cjs.map} +1 -1
- package/dist/{chunk-OP6RDARB.cjs → chunk-IFWVHG2M.cjs} +61 -61
- package/dist/{chunk-OP6RDARB.cjs.map → chunk-IFWVHG2M.cjs.map} +1 -1
- package/dist/{chunk-CVPNHTHR.js → chunk-JOA5YBHN.js} +3 -3
- package/dist/{chunk-CVPNHTHR.js.map → chunk-JOA5YBHN.js.map} +1 -1
- package/dist/{chunk-63DW2D66.cjs → chunk-KE7K677R.cjs} +7 -7
- package/dist/{chunk-63DW2D66.cjs.map → chunk-KE7K677R.cjs.map} +1 -1
- package/dist/{chunk-CZQWJ73N.js → chunk-L4Q63LCX.js} +16 -8
- package/dist/chunk-L4Q63LCX.js.map +1 -0
- package/dist/{chunk-THRQ4LFR.js → chunk-OPMKAUNT.js} +4 -4
- package/dist/{chunk-THRQ4LFR.js.map → chunk-OPMKAUNT.js.map} +1 -1
- package/dist/{chunk-CT66NTC2.cjs → chunk-PA73DY5B.cjs} +14 -14
- package/dist/{chunk-CT66NTC2.cjs.map → chunk-PA73DY5B.cjs.map} +1 -1
- package/dist/{chunk-IXZUEEZU.js → chunk-PBD75KII.js} +5 -5
- package/dist/{chunk-IXZUEEZU.js.map → chunk-PBD75KII.js.map} +1 -1
- package/dist/{chunk-GBEHCMI3.cjs → chunk-QBT4WKAU.cjs} +10 -10
- package/dist/{chunk-GBEHCMI3.cjs.map → chunk-QBT4WKAU.cjs.map} +1 -1
- package/dist/{chunk-AXHYFR5K.js → chunk-UGRXTMCT.js} +3 -3
- package/dist/{chunk-AXHYFR5K.js.map → chunk-UGRXTMCT.js.map} +1 -1
- package/dist/{chunk-52OXJLBQ.js → chunk-V3AXABKC.js} +3 -3
- package/dist/{chunk-52OXJLBQ.js.map → chunk-V3AXABKC.js.map} +1 -1
- package/dist/{chunk-UUDKNM5B.cjs → chunk-VUY4QAW4.cjs} +224 -224
- package/dist/{chunk-UUDKNM5B.cjs.map → chunk-VUY4QAW4.cjs.map} +1 -1
- package/dist/{chunk-ZYUPSZ2Y.js → chunk-YXEOBUUH.js} +9 -9
- package/dist/{chunk-ZYUPSZ2Y.js.map → chunk-YXEOBUUH.js.map} +1 -1
- package/dist/datasets/index.cjs +17 -17
- package/dist/datasets/index.js +2 -2
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +330 -330
- package/dist/docs/references/docs-memory-observational-memory.md +2 -1
- package/dist/docs/references/docs-memory-overview.md +2 -1
- package/dist/docs/references/reference-harness-harness-class.md +2 -0
- package/dist/docs/references/reference-tools-mcp-client.md +47 -0
- package/dist/evals/index.cjs +24 -24
- 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/evals/types.d.ts.map +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/llm/model/provider-types.generated.d.ts +4 -0
- 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-TBJEDBDE.js +3 -0
- package/dist/{mastra-ETANGXH2.js.map → mastra-TBJEDBDE.js.map} +1 -1
- package/dist/mastra-XZZ5PGRE.cjs +12 -0
- package/dist/{mastra-H3BINHNX.cjs.map → mastra-XZZ5PGRE.cjs.map} +1 -1
- package/dist/memory/index.cjs +19 -19
- package/dist/memory/index.js +1 -1
- package/dist/models-dev-NBPBZGNU.js +3 -0
- package/dist/{models-dev-BPJ5SOMG.js.map → models-dev-NBPBZGNU.js.map} +1 -1
- package/dist/models-dev-VYQYBTPH.cjs +12 -0
- package/dist/{models-dev-BZDGM4ZO.cjs.map → models-dev-VYQYBTPH.cjs.map} +1 -1
- package/dist/netlify-AHTOWHQ3.js +3 -0
- package/dist/{netlify-MWSBIK73.js.map → netlify-AHTOWHQ3.js.map} +1 -1
- package/dist/netlify-B4ALATN2.cjs +12 -0
- package/dist/{netlify-JH3QXGUA.cjs.map → netlify-B4ALATN2.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 +51 -51
- package/dist/processors/index.js +1 -1
- package/dist/provider-registry-5MSQZY5O.cjs +44 -0
- package/dist/{provider-registry-MTNBKKRK.cjs.map → provider-registry-5MSQZY5O.cjs.map} +1 -1
- package/dist/provider-registry-GPH6SHFV.js +3 -0
- package/dist/{provider-registry-N3Z5OBUN.js.map → provider-registry-GPH6SHFV.js.map} +1 -1
- package/dist/provider-registry.json +8 -0
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/runner-HODGJLIH.cjs +16 -0
- package/dist/{runner-EFVHW52G.cjs.map → runner-HODGJLIH.cjs.map} +1 -1
- package/dist/runner-LF2L47BX.js +3 -0
- package/dist/{runner-2USZTTWX.js.map → runner-LF2L47BX.js.map} +1 -1
- package/dist/storage/constants.cjs +61 -61
- package/dist/storage/constants.js +1 -1
- package/dist/storage/index.cjs +156 -156
- 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 +28 -28
- package/dist/workflows/index.js +1 -1
- package/package.json +7 -7
- package/src/llm/model/provider-types.generated.d.ts +4 -0
- package/dist/chunk-6HX3NKCA.js.map +0 -1
- package/dist/chunk-CZQWJ73N.js.map +0 -1
- package/dist/chunk-EGOV6KSK.cjs.map +0 -1
- package/dist/chunk-XXKOQCB4.cjs.map +0 -1
- package/dist/mastra-ETANGXH2.js +0 -3
- package/dist/mastra-H3BINHNX.cjs +0 -12
- package/dist/models-dev-BPJ5SOMG.js +0 -3
- package/dist/models-dev-BZDGM4ZO.cjs +0 -12
- package/dist/netlify-JH3QXGUA.cjs +0 -12
- package/dist/netlify-MWSBIK73.js +0 -3
- package/dist/provider-registry-MTNBKKRK.cjs +0 -44
- package/dist/provider-registry-N3Z5OBUN.js +0 -3
- package/dist/runner-2USZTTWX.js +0 -3
- package/dist/runner-EFVHW52G.cjs +0 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @mastra/core
|
|
2
2
|
|
|
3
|
+
## 1.33.0-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixed an issue where trajectory and step scorer results from `runEvals` were not saved to storage. These scores now persist correctly and appear alongside agent and workflow scores in Studio's observability section. ([#16249](https://github.com/mastra-ai/mastra/pull/16249))
|
|
8
|
+
|
|
3
9
|
## 1.33.0-alpha.0
|
|
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 chunkPA73DY5B_cjs = require('../../chunk-PA73DY5B.cjs');
|
|
5
5
|
var chunkZCBG4ZQT_cjs = require('../../chunk-ZCBG4ZQT.cjs');
|
|
6
6
|
var chunkB5SLBAGA_cjs = require('../../chunk-B5SLBAGA.cjs');
|
|
7
7
|
var chunkHM6XXOV2_cjs = require('../../chunk-HM6XXOV2.cjs');
|
|
8
|
-
var
|
|
8
|
+
var chunkCHGGDYI6_cjs = require('../../chunk-CHGGDYI6.cjs');
|
|
9
9
|
var chunkGLBBBSS5_cjs = require('../../chunk-GLBBBSS5.cjs');
|
|
10
10
|
var chunkAX6D722J_cjs = require('../../chunk-AX6D722J.cjs');
|
|
11
11
|
var chunkCDN65CUN_cjs = require('../../chunk-CDN65CUN.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-HODGJLIH.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 chunkPA73DY5B_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 chunkPA73DY5B_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 chunkPA73DY5B_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 chunkPA73DY5B_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 chunkCHGGDYI6_cjs.resolveModelConfig(modelConfigString, requestContext, mastra);
|
|
1401
1401
|
}
|
|
1402
|
-
return await
|
|
1402
|
+
return await chunkCHGGDYI6_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 chunkPA73DY5B_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 (!chunkPA73DY5B_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 chunkPA73DY5B_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 = chunkPA73DY5B_cjs.execute({
|
|
1592
1592
|
runId,
|
|
1593
1593
|
model: currentModel,
|
|
1594
1594
|
inputMessages,
|
|
@@ -1616,7 +1616,7 @@ function createDurableLLMExecutionStep(_options) {
|
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
1618
|
});
|
|
1619
|
-
const outputStream = new
|
|
1619
|
+
const outputStream = new chunkPA73DY5B_cjs.MastraModelOutput({
|
|
1620
1620
|
model: {
|
|
1621
1621
|
modelId: currentModel.modelId,
|
|
1622
1622
|
provider: currentModel.provider,
|
|
@@ -1797,7 +1797,7 @@ function createDurableLLMExecutionStep(_options) {
|
|
|
1797
1797
|
const registryEntry = globalRunRegistry.get(runId);
|
|
1798
1798
|
if (registryEntry?.errorProcessors?.length) {
|
|
1799
1799
|
try {
|
|
1800
|
-
const runner = new
|
|
1800
|
+
const runner = new chunkPA73DY5B_cjs.ProcessorRunner({
|
|
1801
1801
|
inputProcessors: registryEntry.inputProcessors ?? [],
|
|
1802
1802
|
outputProcessors: registryEntry.outputProcessors ?? [],
|
|
1803
1803
|
errorProcessors: registryEntry.errorProcessors,
|
|
@@ -1883,7 +1883,7 @@ async function flushMessagesBeforeSuspension({
|
|
|
1883
1883
|
}
|
|
1884
1884
|
}
|
|
1885
1885
|
function createDurableToolCallStep() {
|
|
1886
|
-
return
|
|
1886
|
+
return chunkPA73DY5B_cjs.createStep({
|
|
1887
1887
|
id: DurableStepIds.TOOL_CALL,
|
|
1888
1888
|
inputSchema: durableToolCallInputSchema,
|
|
1889
1889
|
outputSchema: durableToolCallOutputSchema,
|
|
@@ -2348,7 +2348,7 @@ var durableLLMMappingOutputSchema = zod.z.object({
|
|
|
2348
2348
|
processorRetryFeedback: zod.z.string().optional()
|
|
2349
2349
|
});
|
|
2350
2350
|
function createDurableLLMMappingStep() {
|
|
2351
|
-
return
|
|
2351
|
+
return chunkPA73DY5B_cjs.createStep({
|
|
2352
2352
|
id: DurableStepIds.LLM_MAPPING,
|
|
2353
2353
|
inputSchema: durableLLMMappingInputSchema,
|
|
2354
2354
|
outputSchema: durableLLMMappingOutputSchema,
|
|
@@ -2455,7 +2455,7 @@ function createDurableAgenticWorkflow(options) {
|
|
|
2455
2455
|
const toolCallStep = createDurableToolCallStep();
|
|
2456
2456
|
const llmMappingStep = createDurableLLMMappingStep();
|
|
2457
2457
|
const backgroundTaskCheckStep = createDurableBackgroundTaskCheckStep();
|
|
2458
|
-
const singleIterationWorkflow =
|
|
2458
|
+
const singleIterationWorkflow = chunkPA73DY5B_cjs.createWorkflow({
|
|
2459
2459
|
id: DurableStepIds.AGENTIC_EXECUTION,
|
|
2460
2460
|
inputSchema: iterationStateSchema,
|
|
2461
2461
|
outputSchema: iterationStateSchema,
|
|
@@ -2518,7 +2518,7 @@ function createDurableAgenticWorkflow(options) {
|
|
|
2518
2518
|
},
|
|
2519
2519
|
{ id: "update-iteration-state" }
|
|
2520
2520
|
).commit();
|
|
2521
|
-
return
|
|
2521
|
+
return chunkPA73DY5B_cjs.createWorkflow({
|
|
2522
2522
|
id: DurableStepIds.AGENTIC_LOOP,
|
|
2523
2523
|
inputSchema: durableAgenticInputSchema,
|
|
2524
2524
|
outputSchema: durableAgenticOutputSchema,
|
|
@@ -2561,7 +2561,7 @@ function createDurableAgenticWorkflow(options) {
|
|
|
2561
2561
|
const registryEntry = globalRunRegistry.get(state.runId);
|
|
2562
2562
|
if (registryEntry?.outputProcessors?.length) {
|
|
2563
2563
|
try {
|
|
2564
|
-
const { ProcessorRunner: ProcessorRunner2 } = await import('../../runner-
|
|
2564
|
+
const { ProcessorRunner: ProcessorRunner2 } = await import('../../runner-HODGJLIH.cjs');
|
|
2565
2565
|
const runner = new ProcessorRunner2({
|
|
2566
2566
|
inputProcessors: registryEntry.inputProcessors ?? [],
|
|
2567
2567
|
outputProcessors: registryEntry.outputProcessors,
|
|
@@ -2659,7 +2659,7 @@ function createDurableAgenticWorkflow(options) {
|
|
|
2659
2659
|
scorer,
|
|
2660
2660
|
sampling
|
|
2661
2661
|
};
|
|
2662
|
-
|
|
2662
|
+
chunkPA73DY5B_cjs.runScorer({
|
|
2663
2663
|
runId: initData.runId,
|
|
2664
2664
|
scorerId: scorerKey,
|
|
2665
2665
|
scorerObject,
|
|
@@ -2692,7 +2692,7 @@ function createDurableAgenticWorkflow(options) {
|
|
|
2692
2692
|
}
|
|
2693
2693
|
|
|
2694
2694
|
// src/agent/durable/durable-agent.ts
|
|
2695
|
-
var DurableAgent = class extends
|
|
2695
|
+
var DurableAgent = class extends chunkPA73DY5B_cjs.Agent {
|
|
2696
2696
|
/** The wrapped agent */
|
|
2697
2697
|
#wrappedAgent;
|
|
2698
2698
|
/** 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-5LXIX7FZ.js';
|
|
3
3
|
import { PUBSUB_SYMBOL } from '../../chunk-2QXNHEDL.js';
|
|
4
4
|
import { MessageList } from '../../chunk-JGZLU7MM.js';
|
|
5
5
|
import { EventEmitterPubSub } from '../../chunk-4E5FOY4E.js';
|
|
6
|
-
import { resolveModelConfig } from '../../chunk-
|
|
6
|
+
import { resolveModelConfig } from '../../chunk-GQDJFBVF.js';
|
|
7
7
|
import { InMemoryServerCache } from '../../chunk-CH66BRBG.js';
|
|
8
8
|
import { deepMerge } from '../../chunk-O5LXE6TX.js';
|
|
9
9
|
import { createObservabilityContext } from '../../chunk-2NDJVX5U.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-LF2L47BX.js');
|
|
547
547
|
const runner = new ProcessorRunner2({
|
|
548
548
|
inputProcessors,
|
|
549
549
|
outputProcessors,
|
|
@@ -2559,7 +2559,7 @@ function createDurableAgenticWorkflow(options) {
|
|
|
2559
2559
|
const registryEntry = globalRunRegistry.get(state.runId);
|
|
2560
2560
|
if (registryEntry?.outputProcessors?.length) {
|
|
2561
2561
|
try {
|
|
2562
|
-
const { ProcessorRunner: ProcessorRunner2 } = await import('../../runner-
|
|
2562
|
+
const { ProcessorRunner: ProcessorRunner2 } = await import('../../runner-LF2L47BX.js');
|
|
2563
2563
|
const runner = new ProcessorRunner2({
|
|
2564
2564
|
inputProcessors: registryEntry.inputProcessors ?? [],
|
|
2565
2565
|
outputProcessors: registryEntry.outputProcessors,
|
package/dist/agent/index.cjs
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkPA73DY5B_cjs = require('../chunk-PA73DY5B.cjs');
|
|
4
4
|
var chunkB5SLBAGA_cjs = require('../chunk-B5SLBAGA.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 chunkPA73DY5B_cjs.Agent; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "TripWire", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkPA73DY5B_cjs.TripWire; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "isDurableAgentLike", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkPA73DY5B_cjs.isDurableAgentLike; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "isSupportedLanguageModel", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkPA73DY5B_cjs.isSupportedLanguageModel; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "resolveThreadIdFromArgs", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkPA73DY5B_cjs.resolveThreadIdFromArgs; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "supportedLanguageModelSpecifications", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkPA73DY5B_cjs.supportedLanguageModelSpecifications; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "tryGenerateWithJsonFallback", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkPA73DY5B_cjs.tryGenerateWithJsonFallback; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "tryStreamWithJsonFallback", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkPA73DY5B_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-5LXIX7FZ.js';
|
|
2
2
|
export { MessageList, TypeDetector, aiV5ModelMessageToV2PromptMessage, convertMessages } from '../chunk-JGZLU7MM.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 chunkPA73DY5B_cjs = require('../chunk-PA73DY5B.cjs');
|
|
4
4
|
var chunk5ANWVE3P_cjs = require('../chunk-5ANWVE3P.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) => !chunkPA73DY5B_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-5LXIX7FZ.js';
|
|
2
2
|
export { BrowserCliHandler, browserCliHandler } from '../chunk-F4PWGVHW.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 chunkPA73DY5B_cjs = require('../chunk-PA73DY5B.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 chunkPA73DY5B_cjs.AgentChannels; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "ChatChannelProcessor", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkPA73DY5B_cjs.ChatChannelProcessor; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "MastraStateAdapter", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkPA73DY5B_cjs.MastraStateAdapter; }
|
|
18
18
|
});
|
|
19
19
|
//# sourceMappingURL=index.cjs.map
|
|
20
20
|
//# sourceMappingURL=index.cjs.map
|
package/dist/channels/index.js
CHANGED
|
@@ -13394,7 +13394,7 @@ var MastraModelGateway = class {
|
|
|
13394
13394
|
};
|
|
13395
13395
|
|
|
13396
13396
|
// src/llm/model/gateways/constants.ts
|
|
13397
|
-
var MASTRA_USER_AGENT = `mastra/${"1.33.0-alpha.
|
|
13397
|
+
var MASTRA_USER_AGENT = `mastra/${"1.33.0-alpha.1"}` ;
|
|
13398
13398
|
var PROVIDERS_WITH_INSTALLED_PACKAGES = [
|
|
13399
13399
|
"anthropic",
|
|
13400
13400
|
"cerebras",
|
|
@@ -21544,5 +21544,5 @@ exports.withoutTrailingSlash = withoutTrailingSlash;
|
|
|
21544
21544
|
exports.withoutTrailingSlash2 = withoutTrailingSlash2;
|
|
21545
21545
|
exports.zodSchema = zodSchema;
|
|
21546
21546
|
exports.zodSchema2 = zodSchema2;
|
|
21547
|
-
//# sourceMappingURL=chunk-
|
|
21548
|
-
//# sourceMappingURL=chunk-
|
|
21547
|
+
//# sourceMappingURL=chunk-2YN2GWML.cjs.map
|
|
21548
|
+
//# sourceMappingURL=chunk-2YN2GWML.cjs.map
|