@mastra/playground-ui 5.1.1 → 5.1.2-alpha.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/dist/index.cjs.js +244 -189
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +245 -190
- package/dist/index.es.js.map +1 -1
- package/dist/src/domains/traces/types.d.ts +1 -0
- package/dist/src/domains/workflows/context/use-current-run.d.ts +2 -1
- package/dist/src/domains/workflows/context/workflow-nested-graph-context.d.ts +2 -1
- package/dist/src/domains/workflows/workflow/workflow-condition-node.d.ts +1 -0
- package/dist/src/domains/workflows/workflow/workflow-default-node.d.ts +9 -1
- package/dist/src/domains/workflows/workflow/workflow-graph-inner.d.ts +7 -2
- package/dist/src/domains/workflows/workflow/workflow-graph.d.ts +7 -2
- package/dist/src/domains/workflows/workflow/workflow-nested-graph.d.ts +4 -2
- package/dist/src/domains/workflows/workflow/workflow-nested-node.d.ts +3 -1
- package/dist/src/domains/workflows/workflow/workflow-step-action-bar.d.ts +9 -0
- package/dist/src/domains/workflows/workflow/workflow-traces.d.ts +3 -1
- package/dist/src/types.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type Step = {
|
|
1
|
+
export type Step = {
|
|
2
2
|
error?: any;
|
|
3
3
|
startedAt: number;
|
|
4
4
|
endedAt?: number;
|
|
@@ -9,6 +9,7 @@ type Step = {
|
|
|
9
9
|
type UseCurrentRunReturnType = {
|
|
10
10
|
steps: Record<string, Step>;
|
|
11
11
|
isRunning: boolean;
|
|
12
|
+
runId?: string;
|
|
12
13
|
};
|
|
13
14
|
export declare const useCurrentRun: () => UseCurrentRunReturnType;
|
|
14
15
|
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { SerializedStepFlowEntry } from '@mastra/core/workflows';
|
|
2
2
|
|
|
3
3
|
type WorkflowNestedGraphContextType = {
|
|
4
|
-
showNestedGraph: ({ label, stepGraph }: {
|
|
4
|
+
showNestedGraph: ({ label, stepGraph, fullStep, }: {
|
|
5
5
|
label: string;
|
|
6
6
|
stepGraph: SerializedStepFlowEntry[];
|
|
7
|
+
fullStep: string;
|
|
7
8
|
}) => void;
|
|
8
9
|
closeNestedGraph: () => void;
|
|
9
10
|
};
|
|
@@ -5,5 +5,6 @@ export type ConditionNode = Node<{
|
|
|
5
5
|
conditions: Condition[];
|
|
6
6
|
previousStepId: string;
|
|
7
7
|
nextStepId: string;
|
|
8
|
+
mapConfig?: string;
|
|
8
9
|
}, 'condition-node'>;
|
|
9
10
|
export declare function WorkflowConditionNode({ data }: NodeProps<ConditionNode>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,4 +7,12 @@ export type DefaultNode = Node<{
|
|
|
7
7
|
withoutBottomHandle?: boolean;
|
|
8
8
|
mapConfig?: string;
|
|
9
9
|
}, 'default-node'>;
|
|
10
|
-
export
|
|
10
|
+
export interface WorkflowDefaultNodeProps {
|
|
11
|
+
data: DefaultNode['data'];
|
|
12
|
+
onShowTrace?: ({ runId, stepName }: {
|
|
13
|
+
runId: string;
|
|
14
|
+
stepName: string;
|
|
15
|
+
}) => void;
|
|
16
|
+
parentWorkflowName?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function WorkflowDefaultNode({ data, onShowTrace, parentWorkflowName, }: NodeProps<DefaultNode> & WorkflowDefaultNodeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { GetWorkflowResponse } from '@mastra/client-js';
|
|
2
2
|
|
|
3
|
-
export
|
|
3
|
+
export interface WorkflowGraphInnerProps {
|
|
4
4
|
workflow: GetWorkflowResponse;
|
|
5
|
-
}
|
|
5
|
+
onShowTrace: ({ runId, stepName }: {
|
|
6
|
+
runId: string;
|
|
7
|
+
stepName: string;
|
|
8
|
+
}) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function WorkflowGraphInner({ workflow, onShowTrace }: WorkflowGraphInnerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
export
|
|
2
|
+
export interface WorkflowGraphProps {
|
|
3
3
|
workflowId: string;
|
|
4
4
|
baseUrl: string;
|
|
5
|
-
}
|
|
5
|
+
onShowTrace: ({ runId, stepName }: {
|
|
6
|
+
runId: string;
|
|
7
|
+
stepName: string;
|
|
8
|
+
}) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function WorkflowGraph({ workflowId, baseUrl, onShowTrace }: WorkflowGraphProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { SerializedStepFlowEntry } from '@mastra/core/workflows';
|
|
2
2
|
|
|
3
|
-
export
|
|
3
|
+
export interface WorkflowNestedGraphProps {
|
|
4
4
|
stepGraph: SerializedStepFlowEntry[];
|
|
5
5
|
open: boolean;
|
|
6
|
-
|
|
6
|
+
workflowName: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function WorkflowNestedGraph({ stepGraph, open, workflowName }: WorkflowNestedGraphProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,4 +9,6 @@ export type NestedNode = Node<{
|
|
|
9
9
|
stepGraph: StepFlowEntry[];
|
|
10
10
|
mapConfig?: string;
|
|
11
11
|
}, 'nested-node'>;
|
|
12
|
-
export declare function WorkflowNestedNode({ data }: NodeProps<NestedNode>
|
|
12
|
+
export declare function WorkflowNestedNode({ data, parentWorkflowName, }: NodeProps<NestedNode> & {
|
|
13
|
+
parentWorkflowName?: string;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface WorkflowStepActionBarProps {
|
|
2
|
+
input?: any;
|
|
3
|
+
output?: any;
|
|
4
|
+
error?: any;
|
|
5
|
+
stepName: string;
|
|
6
|
+
mapConfig?: string;
|
|
7
|
+
onShowTrace?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const WorkflowStepActionBar: ({ input, output, error, mapConfig, stepName, onShowTrace, }: WorkflowStepActionBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,5 +6,7 @@ export interface WorkflowTracesProps {
|
|
|
6
6
|
error: {
|
|
7
7
|
message: string;
|
|
8
8
|
} | null;
|
|
9
|
+
runId?: string;
|
|
10
|
+
stepName?: string;
|
|
9
11
|
}
|
|
10
|
-
export declare function WorkflowTraces({ traces, isLoading, error }: WorkflowTracesProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function WorkflowTraces({ traces, isLoading, error, runId, stepName }: WorkflowTracesProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/src/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/playground-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.1.
|
|
4
|
+
"version": "5.1.2-alpha.0",
|
|
5
5
|
"description": "Mastra Playground components",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"use-debounce": "^10.0.4",
|
|
93
93
|
"zod": "^3.24.3",
|
|
94
94
|
"zustand": "^5.0.3",
|
|
95
|
-
"@mastra/client-js": "^0.10.
|
|
95
|
+
"@mastra/client-js": "^0.10.2-alpha.0"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
98
98
|
"@mastra/core": "^0.10.0",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"vite": "^6.0.0",
|
|
118
118
|
"vite-plugin-dts": "^3.9.1",
|
|
119
119
|
"vite-plugin-lib-inject-css": "^2.2.1",
|
|
120
|
-
"@mastra/core": "0.10.
|
|
120
|
+
"@mastra/core": "0.10.2-alpha.0"
|
|
121
121
|
},
|
|
122
122
|
"scripts": {
|
|
123
123
|
"dev": "vite",
|