@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.
@@ -42,6 +42,7 @@ export type RefinedTrace = {
42
42
  started: number;
43
43
  status: SpanStatus;
44
44
  trace: Span[];
45
+ runId?: string;
45
46
  };
46
47
  export type EnhancedSpan = Span & {
47
48
  offset: number;
@@ -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 declare function WorkflowDefaultNode({ data }: NodeProps<DefaultNode>): import("react/jsx-runtime").JSX.Element;
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 declare function WorkflowGraphInner({ workflow }: {
3
+ export interface WorkflowGraphInnerProps {
4
4
  workflow: GetWorkflowResponse;
5
- }): import("react/jsx-runtime").JSX.Element;
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 declare function WorkflowGraph({ workflowId, baseUrl }: {
2
+ export interface WorkflowGraphProps {
3
3
  workflowId: string;
4
4
  baseUrl: string;
5
- }): import("react/jsx-runtime").JSX.Element;
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 declare function WorkflowNestedGraph({ stepGraph, open }: {
3
+ export interface WorkflowNestedGraphProps {
4
4
  stepGraph: SerializedStepFlowEntry[];
5
5
  open: boolean;
6
- }): import("react/jsx-runtime").JSX.Element;
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>): import("react/jsx-runtime").JSX.Element;
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;
@@ -66,5 +66,6 @@ export type RefinedTrace = {
66
66
  started: number;
67
67
  status: SpanStatus;
68
68
  trace: Span[];
69
+ runId?: string;
69
70
  };
70
71
  export * from './domains/traces/types';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mastra/playground-ui",
3
3
  "type": "module",
4
- "version": "5.1.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.1"
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.1"
120
+ "@mastra/core": "0.10.2-alpha.0"
121
121
  },
122
122
  "scripts": {
123
123
  "dev": "vite",