@mastra/playground-ui 5.1.2-alpha.2 → 5.1.2-alpha.4
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/dist/index.cjs.js +12 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +12 -4
- package/dist/index.es.js.map +1 -1
- package/dist/src/domains/workflows/context/workflow-run-context.d.ts +1 -0
- package/dist/src/domains/workflows/workflow/workflow-graph-inner.d.ts +3 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -6357,7 +6357,7 @@ function MastraNetworkRuntimeProvider({
|
|
|
6357
6357
|
console.log(messages);
|
|
6358
6358
|
setIsRunning(false);
|
|
6359
6359
|
} catch (error) {
|
|
6360
|
-
console.error("Error
|
|
6360
|
+
console.error("Error occurred in MastraRuntimeProvider", error);
|
|
6361
6361
|
setIsRunning(false);
|
|
6362
6362
|
}
|
|
6363
6363
|
};
|
|
@@ -7755,7 +7755,8 @@ function WorkflowRunProvider({
|
|
|
7755
7755
|
setResult,
|
|
7756
7756
|
payload,
|
|
7757
7757
|
setPayload,
|
|
7758
|
-
clearData
|
|
7758
|
+
clearData,
|
|
7759
|
+
snapshot
|
|
7759
7760
|
},
|
|
7760
7761
|
children
|
|
7761
7762
|
}
|
|
@@ -9565,8 +9566,9 @@ function WorkflowGraphInner({ workflow, onShowTrace }) {
|
|
|
9565
9566
|
|
|
9566
9567
|
function WorkflowGraph({ workflowId, onShowTrace }) {
|
|
9567
9568
|
const { workflow, isLoading } = useWorkflow(workflowId);
|
|
9569
|
+
const { snapshot } = useContext(WorkflowRunContext);
|
|
9568
9570
|
if (isLoading) {
|
|
9569
|
-
return /* @__PURE__ */ jsx("div", { className: "p-4", children: /* @__PURE__ */ jsx(Skeleton, { className: "h-
|
|
9571
|
+
return /* @__PURE__ */ jsx("div", { className: "p-4", children: /* @__PURE__ */ jsx(Skeleton, { className: "h-full" }) });
|
|
9570
9572
|
}
|
|
9571
9573
|
if (!workflow) {
|
|
9572
9574
|
return /* @__PURE__ */ jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-2", children: [
|
|
@@ -9578,7 +9580,13 @@ function WorkflowGraph({ workflowId, onShowTrace }) {
|
|
|
9578
9580
|
] })
|
|
9579
9581
|
] }) });
|
|
9580
9582
|
}
|
|
9581
|
-
return /* @__PURE__ */ jsx(WorkflowNestedGraphProvider, { children: /* @__PURE__ */ jsx(ReactFlowProvider, { children: /* @__PURE__ */ jsx(
|
|
9583
|
+
return /* @__PURE__ */ jsx(WorkflowNestedGraphProvider, { children: /* @__PURE__ */ jsx(ReactFlowProvider, { children: /* @__PURE__ */ jsx(
|
|
9584
|
+
WorkflowGraphInner,
|
|
9585
|
+
{
|
|
9586
|
+
workflow: snapshot?.serializedStepGraph ? { stepGraph: snapshot?.serializedStepGraph } : workflow,
|
|
9587
|
+
onShowTrace
|
|
9588
|
+
}
|
|
9589
|
+
) }) }, snapshot?.runId ?? workflowId);
|
|
9582
9590
|
}
|
|
9583
9591
|
|
|
9584
9592
|
const WorkflowStatus = ({ stepId, status }) => {
|