@mastra/core 1.3.0 → 1.4.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 +462 -0
- package/datasets.d.ts +1 -0
- package/dist/agent/agent.d.ts +1 -1
- package/dist/agent/index.cjs +13 -13
- package/dist/agent/index.js +2 -2
- package/dist/agent/message-list/adapters/AIV4Adapter.d.ts.map +1 -1
- package/dist/agent/message-list/adapters/AIV5Adapter.d.ts.map +1 -1
- package/dist/agent/message-list/conversion/output-converter.d.ts +2 -1
- package/dist/agent/message-list/conversion/output-converter.d.ts.map +1 -1
- package/dist/agent/message-list/index.cjs +18 -18
- package/dist/agent/message-list/index.js +1 -1
- package/dist/agent/workflows/prepare-stream/index.d.ts +1 -1
- package/dist/chunk-3JVFFAJX.cjs +1207 -0
- package/dist/chunk-3JVFFAJX.cjs.map +1 -0
- package/dist/{chunk-WL3AW3YA.js → chunk-3X3CZUXI.js} +4070 -3983
- package/dist/chunk-3X3CZUXI.js.map +1 -0
- package/dist/{chunk-2GWTJFVM.js → chunk-4EHGOATH.js} +46 -14
- package/dist/chunk-4EHGOATH.js.map +1 -0
- package/dist/{chunk-YNXIGRQE.cjs → chunk-4IJ4UDZX.cjs} +319 -83
- package/dist/chunk-4IJ4UDZX.cjs.map +1 -0
- package/dist/{chunk-CGPH7CMG.cjs → chunk-4KFEMXTV.cjs} +46 -14
- package/dist/chunk-4KFEMXTV.cjs.map +1 -0
- package/dist/{chunk-PHYJYZ32.js → chunk-4TQ4EBYX.js} +16 -8
- package/dist/chunk-4TQ4EBYX.js.map +1 -0
- package/dist/{chunk-SIZEIYNH.js → chunk-4XSAZPPS.js} +254 -18
- package/dist/chunk-4XSAZPPS.js.map +1 -0
- package/dist/{chunk-KUTU2YZF.js → chunk-5Q5Y34SS.js} +5 -5
- package/dist/{chunk-KUTU2YZF.js.map → chunk-5Q5Y34SS.js.map} +1 -1
- package/dist/{chunk-EH6SAGEO.cjs → chunk-64WGYTQK.cjs} +72 -53
- package/dist/{chunk-EH6SAGEO.cjs.map → chunk-64WGYTQK.cjs.map} +1 -1
- package/dist/{chunk-OOCEAC6U.cjs → chunk-65PHUUMF.cjs} +3 -3
- package/dist/{chunk-OOCEAC6U.cjs.map → chunk-65PHUUMF.cjs.map} +1 -1
- package/dist/{chunk-JNE2ABVB.js → chunk-7NKUSQEV.js} +1094 -10
- package/dist/chunk-7NKUSQEV.js.map +1 -0
- package/dist/{chunk-ZHFM7HCQ.js → chunk-AXHBJ4GX.js} +3 -3
- package/dist/{chunk-ZHFM7HCQ.js.map → chunk-AXHBJ4GX.js.map} +1 -1
- package/dist/{chunk-ILQXPZCD.js → chunk-AY6DBRS3.js} +37 -21
- package/dist/chunk-AY6DBRS3.js.map +1 -0
- package/dist/{chunk-TERSHTY5.cjs → chunk-BP7VYTOP.cjs} +1116 -21
- package/dist/chunk-BP7VYTOP.cjs.map +1 -0
- package/dist/{chunk-UE2G2LRP.cjs → chunk-CZ4NQANZ.cjs} +37 -21
- package/dist/chunk-CZ4NQANZ.cjs.map +1 -0
- package/dist/{chunk-NCC45KOB.cjs → chunk-DBSVT6AR.cjs} +7 -7
- package/dist/{chunk-NCC45KOB.cjs.map → chunk-DBSVT6AR.cjs.map} +1 -1
- package/dist/{chunk-BXLLXTT4.js → chunk-FLPEGTEK.js} +4 -4
- package/dist/{chunk-BXLLXTT4.js.map → chunk-FLPEGTEK.js.map} +1 -1
- package/dist/{chunk-ON2KVIUJ.cjs → chunk-HYRYTTMT.cjs} +7 -7
- package/dist/{chunk-ON2KVIUJ.cjs.map → chunk-HYRYTTMT.cjs.map} +1 -1
- package/dist/chunk-NJ7TL3LQ.js +1196 -0
- package/dist/chunk-NJ7TL3LQ.js.map +1 -0
- package/dist/{chunk-EUG4AON3.cjs → chunk-NKYWDNCI.cjs} +8 -7
- package/dist/{chunk-EUG4AON3.cjs.map → chunk-NKYWDNCI.cjs.map} +1 -1
- package/dist/{chunk-UHVG25VW.cjs → chunk-NZG2JAKS.cjs} +23 -15
- package/dist/chunk-NZG2JAKS.cjs.map +1 -0
- package/dist/{chunk-44SUGDBR.js → chunk-PS5ONCXY.js} +109 -5
- package/dist/chunk-PS5ONCXY.js.map +1 -0
- package/dist/{chunk-57QAF2ZQ.js → chunk-QTTWRCB5.js} +4 -4
- package/dist/{chunk-57QAF2ZQ.js.map → chunk-QTTWRCB5.js.map} +1 -1
- package/dist/{chunk-VM25PDSW.js → chunk-RZ4CIIZR.js} +4 -4
- package/dist/{chunk-VM25PDSW.js.map → chunk-RZ4CIIZR.js.map} +1 -1
- package/dist/{chunk-C3XU7ZDC.cjs → chunk-SU5APAM6.cjs} +123 -4
- package/dist/chunk-SU5APAM6.cjs.map +1 -0
- package/dist/{chunk-3MJCJLZS.js → chunk-U2HKJZCI.js} +24 -5
- package/dist/{chunk-3MJCJLZS.js.map → chunk-U2HKJZCI.js.map} +1 -1
- package/dist/{chunk-GCTAD6B7.cjs → chunk-VD5YA6RH.cjs} +12 -12
- package/dist/{chunk-GCTAD6B7.cjs.map → chunk-VD5YA6RH.cjs.map} +1 -1
- package/dist/{chunk-KAJNBNWP.cjs → chunk-YNNJLLFN.cjs} +4071 -3984
- package/dist/chunk-YNNJLLFN.cjs.map +1 -0
- package/dist/datasets/dataset.d.ts +153 -0
- package/dist/datasets/dataset.d.ts.map +1 -0
- package/dist/datasets/experiment/analytics/aggregate.d.ts +46 -0
- package/dist/datasets/experiment/analytics/aggregate.d.ts.map +1 -0
- package/dist/datasets/experiment/analytics/compare.d.ts +33 -0
- package/dist/datasets/experiment/analytics/compare.d.ts.map +1 -0
- package/dist/datasets/experiment/analytics/index.d.ts +9 -0
- package/dist/datasets/experiment/analytics/index.d.ts.map +1 -0
- package/dist/datasets/experiment/analytics/types.d.ts +103 -0
- package/dist/datasets/experiment/analytics/types.d.ts.map +1 -0
- package/dist/datasets/experiment/executor.d.ts +40 -0
- package/dist/datasets/experiment/executor.d.ts.map +1 -0
- package/dist/datasets/experiment/index.d.ts +31 -0
- package/dist/datasets/experiment/index.d.ts.map +1 -0
- package/dist/datasets/experiment/scorer.d.ts +21 -0
- package/dist/datasets/experiment/scorer.d.ts.map +1 -0
- package/dist/datasets/experiment/types.d.ts +140 -0
- package/dist/datasets/experiment/types.d.ts.map +1 -0
- package/dist/datasets/index.cjs +69 -0
- package/dist/datasets/index.cjs.map +1 -0
- package/dist/datasets/index.d.ts +6 -0
- package/dist/datasets/index.d.ts.map +1 -0
- package/dist/datasets/index.js +4 -0
- package/dist/datasets/index.js.map +1 -0
- package/dist/datasets/manager.d.ts +73 -0
- package/dist/datasets/manager.d.ts.map +1 -0
- package/dist/datasets/validation/errors.d.ts +44 -0
- package/dist/datasets/validation/errors.d.ts.map +1 -0
- package/dist/datasets/validation/index.d.ts +3 -0
- package/dist/datasets/validation/index.d.ts.map +1 -0
- package/dist/datasets/validation/validator.d.ts +24 -0
- package/dist/datasets/validation/validator.d.ts.map +1 -0
- package/dist/docs/SKILL.md +1 -3
- package/dist/docs/assets/SOURCE_MAP.json +436 -346
- package/dist/docs/references/docs-memory-observational-memory.md +86 -11
- package/dist/docs/references/docs-streaming-events.md +23 -0
- package/dist/docs/references/docs-workspace-filesystem.md +72 -1
- package/dist/docs/references/docs-workspace-overview.md +95 -12
- package/dist/docs/references/docs-workspace-sandbox.md +2 -0
- package/dist/docs/references/guides-agent-frameworks-ai-sdk.md +6 -2
- package/dist/docs/references/reference-ai-sdk-with-mastra.md +1 -1
- package/dist/docs/references/reference-memory-observational-memory.md +318 -9
- package/dist/docs/references/reference-streaming-workflows-stream.md +1 -0
- package/dist/docs/references/reference-workflows-workflow-methods-foreach.md +30 -0
- package/dist/docs/references/reference.md +3 -0
- package/dist/editor/index.d.ts +1 -1
- package/dist/editor/index.d.ts.map +1 -1
- package/dist/editor/types.d.ts +21 -3
- package/dist/editor/types.d.ts.map +1 -1
- 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/features/index.cjs +1 -1
- package/dist/features/index.cjs.map +1 -1
- package/dist/features/index.d.ts.map +1 -1
- package/dist/features/index.js +1 -1
- package/dist/features/index.js.map +1 -1
- package/dist/index.cjs +2 -7
- package/dist/index.d.ts +0 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/llm/index.cjs +10 -10
- package/dist/llm/index.js +2 -2
- package/dist/llm/model/provider-types.generated.d.ts +1694 -1659
- package/dist/loop/index.cjs +12 -12
- package/dist/loop/index.js +1 -1
- package/dist/loop/network/index.d.ts +1 -1
- package/dist/loop/workflows/agentic-execution/index.d.ts +1 -1
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/tool-call-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-loop/index.d.ts +1 -1
- package/dist/loop/workflows/errors.d.ts +4 -0
- package/dist/loop/workflows/errors.d.ts.map +1 -0
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.ts +2 -0
- package/dist/mastra/index.d.ts.map +1 -1
- 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 +5 -0
- package/dist/memory/memory.d.ts.map +1 -1
- package/dist/memory/types.d.ts +56 -0
- package/dist/memory/types.d.ts.map +1 -1
- package/dist/processors/index.cjs +41 -41
- package/dist/processors/index.js +1 -1
- package/dist/processors/processors/skills.d.ts +1 -1
- package/dist/processors/processors/skills.d.ts.map +1 -1
- package/dist/processors/runner.d.ts.map +1 -1
- package/dist/processors/trailing-assistant-guard.d.ts +34 -0
- package/dist/processors/trailing-assistant-guard.d.ts.map +1 -0
- package/dist/provider-registry-6LZAGQET.cjs +40 -0
- package/dist/{provider-registry-C6XCYX44.cjs.map → provider-registry-6LZAGQET.cjs.map} +1 -1
- package/dist/provider-registry-QUNT7S55.js +3 -0
- package/dist/{provider-registry-NWU4YFQW.js.map → provider-registry-QUNT7S55.js.map} +1 -1
- package/dist/provider-registry.json +4068 -3981
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/storage/base.d.ts +4 -1
- package/dist/storage/base.d.ts.map +1 -1
- package/dist/storage/constants.cjs +87 -27
- package/dist/storage/constants.d.ts +21 -2
- package/dist/storage/constants.d.ts.map +1 -1
- package/dist/storage/constants.js +1 -1
- package/dist/storage/domains/agents/inmemory.d.ts.map +1 -1
- package/dist/storage/domains/datasets/base.d.ts +83 -0
- package/dist/storage/domains/datasets/base.d.ts.map +1 -0
- package/dist/storage/domains/datasets/index.d.ts +3 -0
- package/dist/storage/domains/datasets/index.d.ts.map +1 -0
- package/dist/storage/domains/datasets/inmemory.d.ts +40 -0
- package/dist/storage/domains/datasets/inmemory.d.ts.map +1 -0
- package/dist/storage/domains/experiments/base.d.ts +28 -0
- package/dist/storage/domains/experiments/base.d.ts.map +1 -0
- package/dist/storage/domains/experiments/index.d.ts +3 -0
- package/dist/storage/domains/experiments/index.d.ts.map +1 -0
- package/dist/storage/domains/experiments/inmemory.d.ts +28 -0
- package/dist/storage/domains/experiments/inmemory.d.ts.map +1 -0
- package/dist/storage/domains/index.d.ts +3 -0
- package/dist/storage/domains/index.d.ts.map +1 -1
- package/dist/storage/domains/inmemory-db.d.ts +9 -1
- package/dist/storage/domains/inmemory-db.d.ts.map +1 -1
- package/dist/storage/domains/mcp-clients/base.d.ts +47 -0
- package/dist/storage/domains/mcp-clients/base.d.ts.map +1 -0
- package/dist/storage/domains/mcp-clients/index.d.ts +3 -0
- package/dist/storage/domains/mcp-clients/index.d.ts.map +1 -0
- package/dist/storage/domains/mcp-clients/inmemory.d.ts +31 -0
- package/dist/storage/domains/mcp-clients/inmemory.d.ts.map +1 -0
- package/dist/storage/domains/operations/inmemory.d.ts.map +1 -1
- package/dist/storage/index.cjs +201 -117
- package/dist/storage/index.js +2 -2
- package/dist/storage/mock.d.ts.map +1 -1
- package/dist/storage/types.d.ts +338 -3
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/stream/base/output.d.ts.map +1 -1
- package/dist/stream/index.cjs +11 -11
- package/dist/stream/index.js +2 -2
- package/dist/stream/types.d.ts +15 -0
- package/dist/stream/types.d.ts.map +1 -1
- package/dist/test-utils/llm-mock.cjs +4 -4
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/tool-loop-agent/index.cjs +4 -4
- package/dist/tool-loop-agent/index.js +1 -1
- package/dist/tool-provider/index.cjs +4 -0
- package/dist/tool-provider/index.cjs.map +1 -0
- package/dist/tool-provider/index.d.ts +2 -0
- package/dist/tool-provider/index.d.ts.map +1 -0
- package/dist/tool-provider/index.js +3 -0
- package/dist/tool-provider/index.js.map +1 -0
- package/dist/tool-provider/types.d.ts +113 -0
- package/dist/tool-provider/types.d.ts.map +1 -0
- package/dist/utils.cjs +23 -23
- package/dist/utils.d.ts +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.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/evented/workflow-event-processor/index.d.ts.map +1 -1
- package/dist/workflows/handlers/control-flow.d.ts.map +1 -1
- package/dist/workflows/index.cjs +25 -25
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/workflow.d.ts +2 -2
- package/dist/workflows/workflow.d.ts.map +1 -1
- package/dist/workspace/filesystem/filesystem.d.ts +5 -15
- package/dist/workspace/filesystem/filesystem.d.ts.map +1 -1
- package/dist/workspace/filesystem/local-filesystem.d.ts +18 -2
- package/dist/workspace/filesystem/local-filesystem.d.ts.map +1 -1
- package/dist/workspace/filesystem/mastra-filesystem.d.ts +21 -1
- package/dist/workspace/filesystem/mastra-filesystem.d.ts.map +1 -1
- package/dist/workspace/index.cjs +41 -41
- package/dist/workspace/index.d.ts +1 -1
- package/dist/workspace/index.d.ts.map +1 -1
- package/dist/workspace/index.js +1 -1
- package/dist/workspace/lifecycle.d.ts +49 -53
- package/dist/workspace/lifecycle.d.ts.map +1 -1
- package/dist/workspace/sandbox/local-sandbox.d.ts +1 -1
- package/dist/workspace/sandbox/local-sandbox.d.ts.map +1 -1
- package/dist/workspace/sandbox/mastra-sandbox.d.ts +3 -2
- package/dist/workspace/sandbox/mastra-sandbox.d.ts.map +1 -1
- package/dist/workspace/sandbox/sandbox.d.ts +3 -4
- package/dist/workspace/sandbox/sandbox.d.ts.map +1 -1
- package/dist/workspace/workspace.d.ts +2 -15
- package/dist/workspace/workspace.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/llm/model/provider-types.generated.d.ts +1694 -1659
- package/tool-provider.d.ts +1 -0
- package/dist/chunk-2GWTJFVM.js.map +0 -1
- package/dist/chunk-44SUGDBR.js.map +0 -1
- package/dist/chunk-C3XU7ZDC.cjs.map +0 -1
- package/dist/chunk-CGPH7CMG.cjs.map +0 -1
- package/dist/chunk-ILQXPZCD.js.map +0 -1
- package/dist/chunk-JNE2ABVB.js.map +0 -1
- package/dist/chunk-KAJNBNWP.cjs.map +0 -1
- package/dist/chunk-PHYJYZ32.js.map +0 -1
- package/dist/chunk-SIZEIYNH.js.map +0 -1
- package/dist/chunk-TERSHTY5.cjs.map +0 -1
- package/dist/chunk-UE2G2LRP.cjs.map +0 -1
- package/dist/chunk-UHVG25VW.cjs.map +0 -1
- package/dist/chunk-WL3AW3YA.js.map +0 -1
- package/dist/chunk-YNXIGRQE.cjs.map +0 -1
- package/dist/docs/references/reference-cli-mastra.md +0 -336
- package/dist/docs/references/reference-deployer-cloudflare.md +0 -56
- package/dist/provider-registry-C6XCYX44.cjs +0 -40
- package/dist/provider-registry-NWU4YFQW.js +0 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk4IJ4UDZX_cjs = require('./chunk-4IJ4UDZX.cjs');
|
|
4
4
|
var chunkZCBG4ZQT_cjs = require('./chunk-ZCBG4ZQT.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunkBP7VYTOP_cjs = require('./chunk-BP7VYTOP.cjs');
|
|
6
|
+
var chunkCZ4NQANZ_cjs = require('./chunk-CZ4NQANZ.cjs');
|
|
7
7
|
var chunkKJBMTK5B_cjs = require('./chunk-KJBMTK5B.cjs');
|
|
8
8
|
var chunk7UWHFWST_cjs = require('./chunk-7UWHFWST.cjs');
|
|
9
9
|
var chunkVDKWYUGC_cjs = require('./chunk-VDKWYUGC.cjs');
|
|
@@ -58,7 +58,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
|
|
|
58
58
|
let suspended;
|
|
59
59
|
let bailed;
|
|
60
60
|
const startedAt = Date.now();
|
|
61
|
-
const { inputData, validationError } = await
|
|
61
|
+
const { inputData, validationError } = await chunk4IJ4UDZX_cjs.validateStepInput({
|
|
62
62
|
prevOutput: typeof params.foreachIdx === "number" ? params.input?.[params.foreachIdx] : params.input,
|
|
63
63
|
step,
|
|
64
64
|
validateInputs: params.validateInputs ?? true
|
|
@@ -88,7 +88,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
|
|
|
88
88
|
const callId = crypto.randomUUID();
|
|
89
89
|
const outputWriter = this.createOutputWriter(runId);
|
|
90
90
|
const stepOutput = await step.execute(
|
|
91
|
-
|
|
91
|
+
chunk4IJ4UDZX_cjs.createDeprecationProxy(
|
|
92
92
|
{
|
|
93
93
|
workflowId: params.workflowId,
|
|
94
94
|
runId,
|
|
@@ -103,9 +103,9 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
|
|
|
103
103
|
resumeData: params.resumeData,
|
|
104
104
|
suspendData: suspendDataToUse,
|
|
105
105
|
getInitData: () => stepResults?.input,
|
|
106
|
-
getStepResult:
|
|
106
|
+
getStepResult: chunk4IJ4UDZX_cjs.getStepResult.bind(this, stepResults),
|
|
107
107
|
suspend: async (suspendPayload, suspendOptions) => {
|
|
108
|
-
const { suspendData, validationError: validationError2 } = await
|
|
108
|
+
const { suspendData, validationError: validationError2 } = await chunk4IJ4UDZX_cjs.validateStepSuspendData({
|
|
109
109
|
suspendData: suspendPayload,
|
|
110
110
|
step,
|
|
111
111
|
validateInputs: params.validateInputs ?? true
|
|
@@ -160,7 +160,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
|
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
paramName: "runCount",
|
|
163
|
-
deprecationMessage:
|
|
163
|
+
deprecationMessage: chunk4IJ4UDZX_cjs.runCountDeprecationMessage,
|
|
164
164
|
logger: this.logger
|
|
165
165
|
}
|
|
166
166
|
)
|
|
@@ -231,7 +231,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
|
|
|
231
231
|
// Preserve TripWire data as plain object for proper serialization
|
|
232
232
|
// Important: Check `error` not `errorInstance` because getErrorFromUnknown
|
|
233
233
|
// converts the error and loses the prototype chain
|
|
234
|
-
tripwire: error instanceof
|
|
234
|
+
tripwire: error instanceof chunk4IJ4UDZX_cjs.TripWire ? {
|
|
235
235
|
reason: error.message,
|
|
236
236
|
retry: error.options?.retry,
|
|
237
237
|
metadata: error.options?.metadata,
|
|
@@ -289,7 +289,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
|
|
|
289
289
|
const callId = crypto.randomUUID();
|
|
290
290
|
const outputWriter = this.createOutputWriter(runId);
|
|
291
291
|
return condition(
|
|
292
|
-
|
|
292
|
+
chunk4IJ4UDZX_cjs.createDeprecationProxy(
|
|
293
293
|
{
|
|
294
294
|
workflowId,
|
|
295
295
|
runId,
|
|
@@ -300,7 +300,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
|
|
|
300
300
|
retryCount,
|
|
301
301
|
resumeData,
|
|
302
302
|
getInitData: () => stepResults?.input,
|
|
303
|
-
getStepResult:
|
|
303
|
+
getStepResult: chunk4IJ4UDZX_cjs.getStepResult.bind(this, stepResults),
|
|
304
304
|
bail: (_result) => {
|
|
305
305
|
throw new Error("Not implemented");
|
|
306
306
|
},
|
|
@@ -327,7 +327,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
|
|
|
327
327
|
},
|
|
328
328
|
{
|
|
329
329
|
paramName: "runCount",
|
|
330
|
-
deprecationMessage:
|
|
330
|
+
deprecationMessage: chunk4IJ4UDZX_cjs.runCountDeprecationMessage,
|
|
331
331
|
logger: this.logger
|
|
332
332
|
}
|
|
333
333
|
)
|
|
@@ -347,7 +347,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
|
|
|
347
347
|
const callId = crypto.randomUUID();
|
|
348
348
|
const outputWriter = this.createOutputWriter(runId);
|
|
349
349
|
return await step.fn(
|
|
350
|
-
|
|
350
|
+
chunk4IJ4UDZX_cjs.createDeprecationProxy(
|
|
351
351
|
{
|
|
352
352
|
workflowId: params.workflowId,
|
|
353
353
|
runId,
|
|
@@ -361,7 +361,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
|
|
|
361
361
|
retryCount,
|
|
362
362
|
resumeData: params.resumeData,
|
|
363
363
|
getInitData: () => stepResults?.input,
|
|
364
|
-
getStepResult:
|
|
364
|
+
getStepResult: chunk4IJ4UDZX_cjs.getStepResult.bind(this, stepResults),
|
|
365
365
|
suspend: async (_suspendPayload) => {
|
|
366
366
|
throw new Error("Not implemented");
|
|
367
367
|
},
|
|
@@ -390,7 +390,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
|
|
|
390
390
|
},
|
|
391
391
|
{
|
|
392
392
|
paramName: "runCount",
|
|
393
|
-
deprecationMessage:
|
|
393
|
+
deprecationMessage: chunk4IJ4UDZX_cjs.runCountDeprecationMessage,
|
|
394
394
|
logger: this.logger
|
|
395
395
|
}
|
|
396
396
|
)
|
|
@@ -414,7 +414,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
|
|
|
414
414
|
const callId = crypto.randomUUID();
|
|
415
415
|
const outputWriter = this.createOutputWriter(runId);
|
|
416
416
|
const result = await step.fn(
|
|
417
|
-
|
|
417
|
+
chunk4IJ4UDZX_cjs.createDeprecationProxy(
|
|
418
418
|
{
|
|
419
419
|
workflowId: params.workflowId,
|
|
420
420
|
runId,
|
|
@@ -428,7 +428,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
|
|
|
428
428
|
retryCount,
|
|
429
429
|
resumeData: params.resumeData,
|
|
430
430
|
getInitData: () => stepResults?.input,
|
|
431
|
-
getStepResult:
|
|
431
|
+
getStepResult: chunk4IJ4UDZX_cjs.getStepResult.bind(this, stepResults),
|
|
432
432
|
suspend: async (_suspendPayload) => {
|
|
433
433
|
throw new Error("Not implemented");
|
|
434
434
|
},
|
|
@@ -457,7 +457,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
|
|
|
457
457
|
},
|
|
458
458
|
{
|
|
459
459
|
paramName: "runCount",
|
|
460
|
-
deprecationMessage:
|
|
460
|
+
deprecationMessage: chunk4IJ4UDZX_cjs.runCountDeprecationMessage,
|
|
461
461
|
logger: this.logger
|
|
462
462
|
}
|
|
463
463
|
)
|
|
@@ -476,7 +476,7 @@ function isTripwireChunk(chunk) {
|
|
|
476
476
|
}
|
|
477
477
|
function createTripWireFromChunk(chunk) {
|
|
478
478
|
const { payload } = chunk;
|
|
479
|
-
return new
|
|
479
|
+
return new chunk4IJ4UDZX_cjs.TripWire(
|
|
480
480
|
payload.reason || "Agent tripwire triggered",
|
|
481
481
|
{
|
|
482
482
|
retry: payload.retry,
|
|
@@ -777,7 +777,7 @@ async function processWorkflowForEach({
|
|
|
777
777
|
const workflowsStore2 = await mastra.getStorage()?.getStore("workflows");
|
|
778
778
|
const updatedOutput = [...currentResult.output];
|
|
779
779
|
for (const suspIdx of indicesToResume) {
|
|
780
|
-
updatedOutput[suspIdx] =
|
|
780
|
+
updatedOutput[suspIdx] = chunkBP7VYTOP_cjs.createPendingMarker();
|
|
781
781
|
}
|
|
782
782
|
await workflowsStore2?.updateWorkflowResults({
|
|
783
783
|
workflowName: workflowId,
|
|
@@ -2005,7 +2005,7 @@ var WorkflowEventProcessor = class extends EventProcessor {
|
|
|
2005
2005
|
runId
|
|
2006
2006
|
}) ?? { context: {} };
|
|
2007
2007
|
const nestedWorkflow = step.step;
|
|
2008
|
-
const timeTravelParams =
|
|
2008
|
+
const timeTravelParams = chunk4IJ4UDZX_cjs.createTimeTravelExecutionParams({
|
|
2009
2009
|
steps: timeTravel.steps.slice(1),
|
|
2010
2010
|
inputData: timeTravel.inputData,
|
|
2011
2011
|
resumeData: timeTravel.resumeData,
|
|
@@ -2105,7 +2105,7 @@ var WorkflowEventProcessor = class extends EventProcessor {
|
|
|
2105
2105
|
for (const [key, value] of Object.entries(requestContext)) {
|
|
2106
2106
|
rc.set(key, value);
|
|
2107
2107
|
}
|
|
2108
|
-
const { resumeData: timeTravelResumeData, validationError: timeTravelResumeValidationError } = await
|
|
2108
|
+
const { resumeData: timeTravelResumeData, validationError: timeTravelResumeValidationError } = await chunk4IJ4UDZX_cjs.validateStepResumeData({
|
|
2109
2109
|
resumeData: timeTravel?.stepResults[step.step.id]?.status === "suspended" ? timeTravel?.resumeData : void 0,
|
|
2110
2110
|
step: step.step
|
|
2111
2111
|
});
|
|
@@ -2382,6 +2382,25 @@ var WorkflowEventProcessor = class extends EventProcessor {
|
|
|
2382
2382
|
(r) => r && typeof r === "object" && r.status === "suspended"
|
|
2383
2383
|
).length;
|
|
2384
2384
|
const iterationsStarted = iterationResults.length;
|
|
2385
|
+
const completedCount = iterationResults.filter(
|
|
2386
|
+
(r) => r !== null && !(typeof r === "object" && r.status === "suspended")
|
|
2387
|
+
).length;
|
|
2388
|
+
const iterationStatus = prevResult.status === "suspended" ? "suspended" : prevResult.status === "success" ? "success" : "failed";
|
|
2389
|
+
await this.mastra.pubsub.publish(`workflow.events.v2.${runId}`, {
|
|
2390
|
+
type: "watch",
|
|
2391
|
+
runId,
|
|
2392
|
+
data: {
|
|
2393
|
+
type: "workflow-step-progress",
|
|
2394
|
+
payload: {
|
|
2395
|
+
id: step.step.id,
|
|
2396
|
+
completedCount,
|
|
2397
|
+
totalCount: targetLen,
|
|
2398
|
+
currentIndex: currentIdx,
|
|
2399
|
+
iterationStatus,
|
|
2400
|
+
...prevResult.status === "success" ? { iterationOutput: prevResult.output } : {}
|
|
2401
|
+
}
|
|
2402
|
+
}
|
|
2403
|
+
});
|
|
2385
2404
|
if (pendingCount > 0) {
|
|
2386
2405
|
return;
|
|
2387
2406
|
}
|
|
@@ -2905,7 +2924,7 @@ var WorkflowEventProcessor = class extends EventProcessor {
|
|
|
2905
2924
|
|
|
2906
2925
|
// src/workflows/evented/workflow.ts
|
|
2907
2926
|
function cloneWorkflow(workflow, opts) {
|
|
2908
|
-
const wf = new
|
|
2927
|
+
const wf = new chunk4IJ4UDZX_cjs.Workflow({
|
|
2909
2928
|
id: opts.id,
|
|
2910
2929
|
inputSchema: workflow.inputSchema,
|
|
2911
2930
|
outputSchema: workflow.outputSchema,
|
|
@@ -2934,16 +2953,16 @@ function cloneStep(step, opts) {
|
|
|
2934
2953
|
};
|
|
2935
2954
|
}
|
|
2936
2955
|
function isAgent(input) {
|
|
2937
|
-
return input instanceof
|
|
2956
|
+
return input instanceof chunk4IJ4UDZX_cjs.Agent;
|
|
2938
2957
|
}
|
|
2939
2958
|
function isToolStep(input) {
|
|
2940
2959
|
return input instanceof chunk7UWHFWST_cjs.Tool;
|
|
2941
2960
|
}
|
|
2942
2961
|
function isStepParams(input) {
|
|
2943
|
-
return input !== null && typeof input === "object" && "id" in input && "execute" in input && !(input instanceof
|
|
2962
|
+
return input !== null && typeof input === "object" && "id" in input && "execute" in input && !(input instanceof chunk4IJ4UDZX_cjs.Agent) && !(input instanceof chunk7UWHFWST_cjs.Tool);
|
|
2944
2963
|
}
|
|
2945
2964
|
function isProcessor(obj) {
|
|
2946
|
-
return obj !== null && typeof obj === "object" && "id" in obj && typeof obj.id === "string" && !(obj instanceof
|
|
2965
|
+
return obj !== null && typeof obj === "object" && "id" in obj && typeof obj.id === "string" && !(obj instanceof chunk4IJ4UDZX_cjs.Agent) && !(obj instanceof chunk7UWHFWST_cjs.Tool) && (typeof obj.processInput === "function" || typeof obj.processInputStep === "function" || typeof obj.processOutputStream === "function" || typeof obj.processOutputResult === "function" || typeof obj.processOutputStep === "function");
|
|
2947
2966
|
}
|
|
2948
2967
|
function createStep(params, agentOrToolOptions) {
|
|
2949
2968
|
if (isAgent(params)) {
|
|
@@ -3058,7 +3077,7 @@ function createStepFromAgent(params, agentOrToolOptions) {
|
|
|
3058
3077
|
};
|
|
3059
3078
|
const llm = await params.getLLM({ requestContext });
|
|
3060
3079
|
const modelInfo = llm.getModel();
|
|
3061
|
-
const isV2Model =
|
|
3080
|
+
const isV2Model = chunk4IJ4UDZX_cjs.isSupportedLanguageModel(modelInfo);
|
|
3062
3081
|
let structuredResult = null;
|
|
3063
3082
|
const handleFinish = (result) => {
|
|
3064
3083
|
const resultWithObject = result;
|
|
@@ -3212,8 +3231,8 @@ function createStepFromProcessor(processor) {
|
|
|
3212
3231
|
return {
|
|
3213
3232
|
id: `processor:${processor.id}`,
|
|
3214
3233
|
description: processor.name ?? `Processor ${processor.id}`,
|
|
3215
|
-
inputSchema:
|
|
3216
|
-
outputSchema:
|
|
3234
|
+
inputSchema: chunk4IJ4UDZX_cjs.ProcessorStepSchema,
|
|
3235
|
+
outputSchema: chunk4IJ4UDZX_cjs.ProcessorStepOutputSchema,
|
|
3217
3236
|
execute: async ({ inputData, requestContext, tracingContext }) => {
|
|
3218
3237
|
const input = inputData;
|
|
3219
3238
|
const {
|
|
@@ -3242,7 +3261,7 @@ function createStepFromProcessor(processor) {
|
|
|
3242
3261
|
abortSignal
|
|
3243
3262
|
} = input;
|
|
3244
3263
|
const abort = (reason, options) => {
|
|
3245
|
-
throw new
|
|
3264
|
+
throw new chunk4IJ4UDZX_cjs.TripWire(reason || `Tripwire triggered by ${processor.id}`, options, processor.id);
|
|
3246
3265
|
};
|
|
3247
3266
|
if (!hasPhaseMethod(phase)) {
|
|
3248
3267
|
return input;
|
|
@@ -3275,7 +3294,7 @@ function createStepFromProcessor(processor) {
|
|
|
3275
3294
|
phase,
|
|
3276
3295
|
// Auto-create MessageList from messages if not provided
|
|
3277
3296
|
// This enables running processor workflows from the UI where messageList can't be serialized
|
|
3278
|
-
messageList: messageList ?? (Array.isArray(messages) ? new
|
|
3297
|
+
messageList: messageList ?? (Array.isArray(messages) ? new chunkCZ4NQANZ_cjs.MessageList().add(messages, "input").addSystem(systemMessages ?? []) : void 0),
|
|
3279
3298
|
stepNumber,
|
|
3280
3299
|
systemMessages,
|
|
3281
3300
|
streamParts,
|
|
@@ -3300,7 +3319,7 @@ function createStepFromProcessor(processor) {
|
|
|
3300
3319
|
processorSpan?.end({ output: result });
|
|
3301
3320
|
return result;
|
|
3302
3321
|
} catch (error) {
|
|
3303
|
-
if (error instanceof
|
|
3322
|
+
if (error instanceof chunk4IJ4UDZX_cjs.TripWire) {
|
|
3304
3323
|
processorSpan?.end({ output: { tripwire: error.message } });
|
|
3305
3324
|
} else {
|
|
3306
3325
|
processorSpan?.error({ error, endSpan: true });
|
|
@@ -3328,7 +3347,7 @@ function createStepFromProcessor(processor) {
|
|
|
3328
3347
|
messageList: passThrough.messageList,
|
|
3329
3348
|
systemMessages: systemMessages ?? []
|
|
3330
3349
|
});
|
|
3331
|
-
if (result instanceof
|
|
3350
|
+
if (result instanceof chunkCZ4NQANZ_cjs.MessageList) {
|
|
3332
3351
|
if (result !== passThrough.messageList) {
|
|
3333
3352
|
throw new chunk4U7ZLI36_cjs.MastraError({
|
|
3334
3353
|
category: "USER" /* USER */,
|
|
@@ -3343,7 +3362,7 @@ function createStepFromProcessor(processor) {
|
|
|
3343
3362
|
systemMessages: result.getAllSystemMessages()
|
|
3344
3363
|
};
|
|
3345
3364
|
} else if (Array.isArray(result)) {
|
|
3346
|
-
|
|
3365
|
+
chunk4IJ4UDZX_cjs.ProcessorRunner.applyMessagesToMessageList(
|
|
3347
3366
|
result,
|
|
3348
3367
|
passThrough.messageList,
|
|
3349
3368
|
idsBeforeProcessing,
|
|
@@ -3353,7 +3372,7 @@ function createStepFromProcessor(processor) {
|
|
|
3353
3372
|
return { ...passThrough, messages: result };
|
|
3354
3373
|
} else if (result && "messages" in result && "systemMessages" in result) {
|
|
3355
3374
|
const typedResult = result;
|
|
3356
|
-
|
|
3375
|
+
chunk4IJ4UDZX_cjs.ProcessorRunner.applyMessagesToMessageList(
|
|
3357
3376
|
typedResult.messages,
|
|
3358
3377
|
passThrough.messageList,
|
|
3359
3378
|
idsBeforeProcessing,
|
|
@@ -3399,13 +3418,13 @@ function createStepFromProcessor(processor) {
|
|
|
3399
3418
|
structuredOutput,
|
|
3400
3419
|
steps: steps ?? []
|
|
3401
3420
|
});
|
|
3402
|
-
const validatedResult = await
|
|
3421
|
+
const validatedResult = await chunk4IJ4UDZX_cjs.ProcessorRunner.validateAndFormatProcessInputStepResult(result, {
|
|
3403
3422
|
messageList: passThrough.messageList,
|
|
3404
3423
|
processor,
|
|
3405
3424
|
stepNumber: stepNumber ?? 0
|
|
3406
3425
|
});
|
|
3407
3426
|
if (validatedResult.messages) {
|
|
3408
|
-
|
|
3427
|
+
chunk4IJ4UDZX_cjs.ProcessorRunner.applyMessagesToMessageList(
|
|
3409
3428
|
validatedResult.messages,
|
|
3410
3429
|
passThrough.messageList,
|
|
3411
3430
|
idsBeforeProcessing,
|
|
@@ -3463,7 +3482,7 @@ function createStepFromProcessor(processor) {
|
|
|
3463
3482
|
delete mutableState[spanKey];
|
|
3464
3483
|
}
|
|
3465
3484
|
} catch (error) {
|
|
3466
|
-
if (error instanceof
|
|
3485
|
+
if (error instanceof chunk4IJ4UDZX_cjs.TripWire) {
|
|
3467
3486
|
processorSpan2?.end({ output: { tripwire: error.message } });
|
|
3468
3487
|
} else {
|
|
3469
3488
|
processorSpan2?.error({ error, endSpan: true });
|
|
@@ -3492,7 +3511,7 @@ function createStepFromProcessor(processor) {
|
|
|
3492
3511
|
messages,
|
|
3493
3512
|
messageList: passThrough.messageList
|
|
3494
3513
|
});
|
|
3495
|
-
if (result instanceof
|
|
3514
|
+
if (result instanceof chunkCZ4NQANZ_cjs.MessageList) {
|
|
3496
3515
|
if (result !== passThrough.messageList) {
|
|
3497
3516
|
throw new chunk4U7ZLI36_cjs.MastraError({
|
|
3498
3517
|
category: "USER" /* USER */,
|
|
@@ -3507,7 +3526,7 @@ function createStepFromProcessor(processor) {
|
|
|
3507
3526
|
systemMessages: result.getAllSystemMessages()
|
|
3508
3527
|
};
|
|
3509
3528
|
} else if (Array.isArray(result)) {
|
|
3510
|
-
|
|
3529
|
+
chunk4IJ4UDZX_cjs.ProcessorRunner.applyMessagesToMessageList(
|
|
3511
3530
|
result,
|
|
3512
3531
|
passThrough.messageList,
|
|
3513
3532
|
idsBeforeProcessing,
|
|
@@ -3517,7 +3536,7 @@ function createStepFromProcessor(processor) {
|
|
|
3517
3536
|
return { ...passThrough, messages: result };
|
|
3518
3537
|
} else if (result && "messages" in result && "systemMessages" in result) {
|
|
3519
3538
|
const typedResult = result;
|
|
3520
|
-
|
|
3539
|
+
chunk4IJ4UDZX_cjs.ProcessorRunner.applyMessagesToMessageList(
|
|
3521
3540
|
typedResult.messages,
|
|
3522
3541
|
passThrough.messageList,
|
|
3523
3542
|
idsBeforeProcessing,
|
|
@@ -3558,7 +3577,7 @@ function createStepFromProcessor(processor) {
|
|
|
3558
3577
|
systemMessages: systemMessages ?? [],
|
|
3559
3578
|
steps: steps ?? []
|
|
3560
3579
|
});
|
|
3561
|
-
if (result instanceof
|
|
3580
|
+
if (result instanceof chunkCZ4NQANZ_cjs.MessageList) {
|
|
3562
3581
|
if (result !== passThrough.messageList) {
|
|
3563
3582
|
throw new chunk4U7ZLI36_cjs.MastraError({
|
|
3564
3583
|
category: "USER" /* USER */,
|
|
@@ -3573,7 +3592,7 @@ function createStepFromProcessor(processor) {
|
|
|
3573
3592
|
systemMessages: result.getAllSystemMessages()
|
|
3574
3593
|
};
|
|
3575
3594
|
} else if (Array.isArray(result)) {
|
|
3576
|
-
|
|
3595
|
+
chunk4IJ4UDZX_cjs.ProcessorRunner.applyMessagesToMessageList(
|
|
3577
3596
|
result,
|
|
3578
3597
|
passThrough.messageList,
|
|
3579
3598
|
idsBeforeProcessing,
|
|
@@ -3583,7 +3602,7 @@ function createStepFromProcessor(processor) {
|
|
|
3583
3602
|
return { ...passThrough, messages: result };
|
|
3584
3603
|
} else if (result && "messages" in result && "systemMessages" in result) {
|
|
3585
3604
|
const typedResult = result;
|
|
3586
|
-
|
|
3605
|
+
chunk4IJ4UDZX_cjs.ProcessorRunner.applyMessagesToMessageList(
|
|
3587
3606
|
typedResult.messages,
|
|
3588
3607
|
passThrough.messageList,
|
|
3589
3608
|
idsBeforeProcessing,
|
|
@@ -3627,7 +3646,7 @@ function createWorkflow(params) {
|
|
|
3627
3646
|
executionEngine
|
|
3628
3647
|
});
|
|
3629
3648
|
}
|
|
3630
|
-
var EventedWorkflow = class extends
|
|
3649
|
+
var EventedWorkflow = class extends chunk4IJ4UDZX_cjs.Workflow {
|
|
3631
3650
|
constructor(params) {
|
|
3632
3651
|
super(params);
|
|
3633
3652
|
this.engineType = "evented";
|
|
@@ -3692,7 +3711,7 @@ var EventedWorkflow = class extends chunkYNXIGRQE_cjs.Workflow {
|
|
|
3692
3711
|
return run;
|
|
3693
3712
|
}
|
|
3694
3713
|
};
|
|
3695
|
-
var EventedRun = class extends
|
|
3714
|
+
var EventedRun = class extends chunk4IJ4UDZX_cjs.Run {
|
|
3696
3715
|
constructor(params) {
|
|
3697
3716
|
super(params);
|
|
3698
3717
|
this.serializedStepGraph = params.serializedStepGraph;
|
|
@@ -3904,7 +3923,7 @@ var EventedRun = class extends chunkYNXIGRQE_cjs.Run {
|
|
|
3904
3923
|
}
|
|
3905
3924
|
}
|
|
3906
3925
|
});
|
|
3907
|
-
this.streamOutput = new
|
|
3926
|
+
this.streamOutput = new chunk4IJ4UDZX_cjs.WorkflowRunOutput({
|
|
3908
3927
|
runId: this.runId,
|
|
3909
3928
|
workflowId: this.workflowId,
|
|
3910
3929
|
stream
|
|
@@ -3970,7 +3989,7 @@ var EventedRun = class extends chunkYNXIGRQE_cjs.Run {
|
|
|
3970
3989
|
}
|
|
3971
3990
|
}
|
|
3972
3991
|
});
|
|
3973
|
-
this.streamOutput = new
|
|
3992
|
+
this.streamOutput = new chunk4IJ4UDZX_cjs.WorkflowRunOutput({
|
|
3974
3993
|
runId: this.runId,
|
|
3975
3994
|
workflowId: this.workflowId,
|
|
3976
3995
|
stream
|
|
@@ -4203,7 +4222,7 @@ function isExecutableStep(step) {
|
|
|
4203
4222
|
}
|
|
4204
4223
|
|
|
4205
4224
|
// src/workflows/evented/execution-engine.ts
|
|
4206
|
-
var EventedExecutionEngine = class extends
|
|
4225
|
+
var EventedExecutionEngine = class extends chunk4IJ4UDZX_cjs.ExecutionEngine {
|
|
4207
4226
|
eventProcessor;
|
|
4208
4227
|
constructor({
|
|
4209
4228
|
mastra,
|
|
@@ -4243,7 +4262,7 @@ var EventedExecutionEngine = class extends chunkYNXIGRQE_cjs.ExecutionEngine {
|
|
|
4243
4262
|
await ack?.();
|
|
4244
4263
|
await pubsub.unsubscribe("workflows-finish", finishCb);
|
|
4245
4264
|
if (event.type === "workflow.fail" && event.data.stepResults) {
|
|
4246
|
-
event.data.stepResults =
|
|
4265
|
+
event.data.stepResults = chunk4IJ4UDZX_cjs.hydrateSerializedStepErrors(event.data.stepResults);
|
|
4247
4266
|
}
|
|
4248
4267
|
resolveResult(event.data);
|
|
4249
4268
|
return;
|
|
@@ -4325,7 +4344,7 @@ var EventedExecutionEngine = class extends chunkYNXIGRQE_cjs.ExecutionEngine {
|
|
|
4325
4344
|
const { __state: _removedState, ...stepResultsWithoutTopLevelState } = resultData.stepResults ?? {};
|
|
4326
4345
|
const cleanStepResults = {};
|
|
4327
4346
|
for (const [stepId, stepResult] of Object.entries(stepResultsWithoutTopLevelState)) {
|
|
4328
|
-
cleanStepResults[stepId] =
|
|
4347
|
+
cleanStepResults[stepId] = chunk4IJ4UDZX_cjs.cleanStepResult(stepResult);
|
|
4329
4348
|
}
|
|
4330
4349
|
let callbackArg;
|
|
4331
4350
|
if (resultData.prevResult.status === "failed") {
|
|
@@ -4441,5 +4460,5 @@ exports.cloneStep = cloneStep;
|
|
|
4441
4460
|
exports.cloneWorkflow = cloneWorkflow;
|
|
4442
4461
|
exports.createStep = createStep;
|
|
4443
4462
|
exports.createWorkflow = createWorkflow;
|
|
4444
|
-
//# sourceMappingURL=chunk-
|
|
4445
|
-
//# sourceMappingURL=chunk-
|
|
4463
|
+
//# sourceMappingURL=chunk-64WGYTQK.cjs.map
|
|
4464
|
+
//# sourceMappingURL=chunk-64WGYTQK.cjs.map
|