@mastra/core 1.0.0-beta.1 → 1.0.0-beta.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 +9 -0
- package/dist/agent/index.cjs +6 -6
- package/dist/agent/index.js +1 -1
- package/dist/{chunk-DNEURYF3.cjs → chunk-22443P6A.cjs} +22 -21
- package/dist/chunk-22443P6A.cjs.map +1 -0
- package/dist/{chunk-JUBFO5J3.js → chunk-7CBEP2ZQ.js} +22 -5
- package/dist/chunk-7CBEP2ZQ.js.map +1 -0
- package/dist/{chunk-VOQ3ULMT.js → chunk-7PO6SEJF.js} +6 -3
- package/dist/chunk-7PO6SEJF.js.map +1 -0
- package/dist/{chunk-MA7TEM62.cjs → chunk-JYYQQEBH.cjs} +7 -4
- package/dist/chunk-JYYQQEBH.cjs.map +1 -0
- package/dist/{chunk-CINNK34N.js → chunk-SNPVZPLB.js} +3 -3
- package/dist/{chunk-CINNK34N.js.map → chunk-SNPVZPLB.js.map} +1 -1
- package/dist/{chunk-MSWTA73A.cjs → chunk-YCVEJ3UN.cjs} +22 -5
- package/dist/chunk-YCVEJ3UN.cjs.map +1 -0
- package/dist/{chunk-H6CZGPZD.js → chunk-ZGHTOYHW.js} +5 -4
- package/dist/chunk-ZGHTOYHW.js.map +1 -0
- package/dist/{chunk-CD56CXVE.cjs → chunk-ZWNI5IWX.cjs} +9 -9
- package/dist/{chunk-CD56CXVE.cjs.map → chunk-ZWNI5IWX.cjs.map} +1 -1
- package/dist/evals/index.cjs +4 -4
- package/dist/evals/index.js +1 -1
- package/dist/evals/scoreTraces/index.cjs +3 -3
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.ts.map +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/processors/index.cjs +11 -11
- package/dist/processors/index.js +1 -1
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +1 -1
- package/dist/stream/index.cjs +8 -8
- package/dist/stream/index.js +1 -1
- package/dist/workflows/default.d.ts.map +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/evented/step-executor.d.ts.map +1 -1
- package/dist/workflows/index.cjs +16 -16
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/step.d.ts +1 -1
- package/dist/workflows/step.d.ts.map +1 -1
- package/dist/workflows/types.d.ts +10 -5
- package/dist/workflows/types.d.ts.map +1 -1
- package/dist/workflows/workflow.d.ts +1 -0
- package/dist/workflows/workflow.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-DNEURYF3.cjs.map +0 -1
- package/dist/chunk-H6CZGPZD.js.map +0 -1
- package/dist/chunk-JUBFO5J3.js.map +0 -1
- package/dist/chunk-MA7TEM62.cjs.map +0 -1
- package/dist/chunk-MSWTA73A.cjs.map +0 -1
- package/dist/chunk-VOQ3ULMT.js.map +0 -1
|
@@ -1544,7 +1544,12 @@ var DefaultExecutionEngine = class extends ExecutionEngine {
|
|
|
1544
1544
|
});
|
|
1545
1545
|
}
|
|
1546
1546
|
if (suspended) {
|
|
1547
|
-
execResults = {
|
|
1547
|
+
execResults = {
|
|
1548
|
+
status: "suspended",
|
|
1549
|
+
suspendPayload: suspended.payload,
|
|
1550
|
+
...result ? { suspendOutput: result } : {},
|
|
1551
|
+
suspendedAt: Date.now()
|
|
1552
|
+
};
|
|
1548
1553
|
} else if (bailed) {
|
|
1549
1554
|
execResults = { status: "bailed", output: bailed.payload, endedAt: Date.now() };
|
|
1550
1555
|
} else {
|
|
@@ -1753,7 +1758,11 @@ var DefaultExecutionEngine = class extends ExecutionEngine {
|
|
|
1753
1758
|
if (hasFailed) {
|
|
1754
1759
|
execResults = { status: "failed", error: hasFailed.error };
|
|
1755
1760
|
} else if (hasSuspended) {
|
|
1756
|
-
execResults = {
|
|
1761
|
+
execResults = {
|
|
1762
|
+
status: "suspended",
|
|
1763
|
+
suspendPayload: hasSuspended.suspendPayload,
|
|
1764
|
+
...hasSuspended.suspendOutput ? { suspendOutput: hasSuspended.suspendOutput } : {}
|
|
1765
|
+
};
|
|
1757
1766
|
} else if (abortController?.signal?.aborted) {
|
|
1758
1767
|
execResults = { status: "canceled" };
|
|
1759
1768
|
} else {
|
|
@@ -1941,7 +1950,12 @@ var DefaultExecutionEngine = class extends ExecutionEngine {
|
|
|
1941
1950
|
if (hasFailed) {
|
|
1942
1951
|
execResults = { status: "failed", error: hasFailed.error };
|
|
1943
1952
|
} else if (hasSuspended) {
|
|
1944
|
-
execResults = {
|
|
1953
|
+
execResults = {
|
|
1954
|
+
status: "suspended",
|
|
1955
|
+
suspendPayload: hasSuspended.suspendPayload,
|
|
1956
|
+
...hasSuspended.suspendOutput ? { suspendOutput: hasSuspended.suspendOutput } : {},
|
|
1957
|
+
suspendedAt: hasSuspended.suspendedAt
|
|
1958
|
+
};
|
|
1945
1959
|
} else if (abortController?.signal?.aborted) {
|
|
1946
1960
|
execResults = { status: "canceled" };
|
|
1947
1961
|
} else {
|
|
@@ -2240,6 +2254,7 @@ var DefaultExecutionEngine = class extends ExecutionEngine {
|
|
|
2240
2254
|
...stepInfo,
|
|
2241
2255
|
suspendedAt: Date.now(),
|
|
2242
2256
|
status: "suspended",
|
|
2257
|
+
...foreachIndexObj[foreachIndex].suspendOutput ? { suspendOutput: foreachIndexObj[foreachIndex].suspendOutput } : {},
|
|
2243
2258
|
suspendPayload: {
|
|
2244
2259
|
...foreachIndexObj[foreachIndex].suspendPayload,
|
|
2245
2260
|
__workflow_meta: {
|
|
@@ -2874,6 +2889,7 @@ var Workflow = class extends MastraBase {
|
|
|
2874
2889
|
stateSchema;
|
|
2875
2890
|
steps;
|
|
2876
2891
|
stepDefs;
|
|
2892
|
+
committed = false;
|
|
2877
2893
|
stepFlow;
|
|
2878
2894
|
serializedStepFlow;
|
|
2879
2895
|
executionEngine;
|
|
@@ -3238,6 +3254,7 @@ var Workflow = class extends MastraBase {
|
|
|
3238
3254
|
*/
|
|
3239
3255
|
commit() {
|
|
3240
3256
|
this.executionGraph = this.buildExecutionGraph();
|
|
3257
|
+
this.committed = true;
|
|
3241
3258
|
return this;
|
|
3242
3259
|
}
|
|
3243
3260
|
get stepGraph() {
|
|
@@ -15757,5 +15774,5 @@ var MastraModelOutput = class extends MastraBase {
|
|
|
15757
15774
|
};
|
|
15758
15775
|
|
|
15759
15776
|
export { AISDKV5OutputStream, Agent, BatchPartsProcessor, ChunkFrom, DefaultExecutionEngine, ExecutionEngine, LanguageDetector, MastraAgentNetworkStream, MastraModelOutput, ModerationProcessor, PIIDetector, ProcessorState, PromptInjectionDetector, Run, StructuredOutputProcessor, SystemPromptScrubber, TokenLimiterProcessor, TripWire, UnicodeNormalizer, Workflow, WorkflowRunOutput, cloneStep, cloneWorkflow, convertFullStreamChunkToUIMessageStream, convertMastraChunkToAISDKv5, createDeprecationProxy, createStep, createWorkflow, getResumeLabelsByStepId, getStepResult, getZodErrors, loop, mapVariable, resolveThreadIdFromArgs, runCountDeprecationMessage, tryGenerateWithJsonFallback, tryStreamWithJsonFallback, validateStepInput };
|
|
15760
|
-
//# sourceMappingURL=chunk-
|
|
15761
|
-
//# sourceMappingURL=chunk-
|
|
15777
|
+
//# sourceMappingURL=chunk-7CBEP2ZQ.js.map
|
|
15778
|
+
//# sourceMappingURL=chunk-7CBEP2ZQ.js.map
|