@mastra/playground-ui 7.0.0-beta.5 → 7.0.0-beta.6
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 +46 -0
- package/dist/index.cjs.js +330 -169
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +325 -167
- package/dist/index.es.js.map +1 -1
- package/dist/src/domains/observability/components/tracing-run-options.d.ts +1 -0
- package/dist/src/domains/observability/context/tracing-settings-context.d.ts +18 -0
- package/dist/src/domains/observability/hooks/use-tracing-settings-state.d.ts +10 -0
- package/dist/src/domains/observability/index.d.ts +1 -0
- package/dist/src/hooks/use-workflow-runs.d.ts +217 -1
- package/package.json +10 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TracingRunOptions: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TracingOptions } from '@mastra/core/observability';
|
|
2
|
+
import { ReactNode } from '../../../../node_modules/@types/react';
|
|
3
|
+
export type TracingSettings = {
|
|
4
|
+
tracingOptions?: TracingOptions;
|
|
5
|
+
};
|
|
6
|
+
export type TracingSettingsContextType = {
|
|
7
|
+
setSettings: (settings: TracingSettings) => void;
|
|
8
|
+
resetAll: () => void;
|
|
9
|
+
settings?: TracingSettings;
|
|
10
|
+
};
|
|
11
|
+
export declare const TracingSettingsContext: import('../../../../node_modules/@types/react').Context<TracingSettingsContextType>;
|
|
12
|
+
export interface TracingSettingsProviderProps {
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
entityId: string;
|
|
15
|
+
entityType: 'workflow' | 'agent';
|
|
16
|
+
}
|
|
17
|
+
export declare const TracingSettingsProvider: ({ children, entityId, entityType }: TracingSettingsProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const useTracingSettings: () => TracingSettingsContextType;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TracingSettings } from '../context/tracing-settings-context';
|
|
2
|
+
export interface TracingSettingsStateProps {
|
|
3
|
+
entityId: string;
|
|
4
|
+
entityType: 'workflow' | 'agent';
|
|
5
|
+
}
|
|
6
|
+
export declare function useTracingSettingsState({ entityId, entityType }: TracingSettingsStateProps): {
|
|
7
|
+
settings: TracingSettings | undefined;
|
|
8
|
+
setSettings: (settingsValue: TracingSettings) => void;
|
|
9
|
+
resetAll: () => void;
|
|
10
|
+
};
|
|
@@ -1,4 +1,220 @@
|
|
|
1
1
|
export declare const useWorkflowRuns: (workflowId: string, { enabled }?: {
|
|
2
2
|
enabled?: boolean;
|
|
3
|
-
}) =>
|
|
3
|
+
}) => {
|
|
4
|
+
setEndOfListElement: (node: HTMLDivElement | null) => (() => void) | undefined;
|
|
5
|
+
data: import('@mastra/core/storage').WorkflowRun[];
|
|
6
|
+
error: Error;
|
|
7
|
+
isError: true;
|
|
8
|
+
isPending: false;
|
|
9
|
+
isLoading: false;
|
|
10
|
+
isLoadingError: false;
|
|
11
|
+
isRefetchError: true;
|
|
12
|
+
isSuccess: false;
|
|
13
|
+
isPlaceholderData: false;
|
|
14
|
+
status: "error";
|
|
15
|
+
fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<import('@mastra/core/storage').WorkflowRun[], Error>>;
|
|
16
|
+
fetchPreviousPage: (options?: import('@tanstack/react-query').FetchPreviousPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<import('@mastra/core/storage').WorkflowRun[], Error>>;
|
|
17
|
+
hasNextPage: boolean;
|
|
18
|
+
hasPreviousPage: boolean;
|
|
19
|
+
isFetchNextPageError: boolean;
|
|
20
|
+
isFetchingNextPage: boolean;
|
|
21
|
+
isFetchPreviousPageError: boolean;
|
|
22
|
+
isFetchingPreviousPage: boolean;
|
|
23
|
+
dataUpdatedAt: number;
|
|
24
|
+
errorUpdatedAt: number;
|
|
25
|
+
failureCount: number;
|
|
26
|
+
failureReason: Error | null;
|
|
27
|
+
errorUpdateCount: number;
|
|
28
|
+
isFetched: boolean;
|
|
29
|
+
isFetchedAfterMount: boolean;
|
|
30
|
+
isFetching: boolean;
|
|
31
|
+
isInitialLoading: boolean;
|
|
32
|
+
isPaused: boolean;
|
|
33
|
+
isRefetching: boolean;
|
|
34
|
+
isStale: boolean;
|
|
35
|
+
isEnabled: boolean;
|
|
36
|
+
refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<import('@mastra/core/storage').WorkflowRun[], Error>>;
|
|
37
|
+
fetchStatus: import('@tanstack/react-query').FetchStatus;
|
|
38
|
+
promise: Promise<import('@mastra/core/storage').WorkflowRun[]>;
|
|
39
|
+
} | {
|
|
40
|
+
setEndOfListElement: (node: HTMLDivElement | null) => (() => void) | undefined;
|
|
41
|
+
data: import('@mastra/core/storage').WorkflowRun[];
|
|
42
|
+
error: null;
|
|
43
|
+
isError: false;
|
|
44
|
+
isPending: false;
|
|
45
|
+
isLoading: false;
|
|
46
|
+
isLoadingError: false;
|
|
47
|
+
isRefetchError: false;
|
|
48
|
+
isFetchNextPageError: false;
|
|
49
|
+
isFetchPreviousPageError: false;
|
|
50
|
+
isSuccess: true;
|
|
51
|
+
isPlaceholderData: false;
|
|
52
|
+
status: "success";
|
|
53
|
+
fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<import('@mastra/core/storage').WorkflowRun[], Error>>;
|
|
54
|
+
fetchPreviousPage: (options?: import('@tanstack/react-query').FetchPreviousPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<import('@mastra/core/storage').WorkflowRun[], Error>>;
|
|
55
|
+
hasNextPage: boolean;
|
|
56
|
+
hasPreviousPage: boolean;
|
|
57
|
+
isFetchingNextPage: boolean;
|
|
58
|
+
isFetchingPreviousPage: boolean;
|
|
59
|
+
dataUpdatedAt: number;
|
|
60
|
+
errorUpdatedAt: number;
|
|
61
|
+
failureCount: number;
|
|
62
|
+
failureReason: Error | null;
|
|
63
|
+
errorUpdateCount: number;
|
|
64
|
+
isFetched: boolean;
|
|
65
|
+
isFetchedAfterMount: boolean;
|
|
66
|
+
isFetching: boolean;
|
|
67
|
+
isInitialLoading: boolean;
|
|
68
|
+
isPaused: boolean;
|
|
69
|
+
isRefetching: boolean;
|
|
70
|
+
isStale: boolean;
|
|
71
|
+
isEnabled: boolean;
|
|
72
|
+
refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<import('@mastra/core/storage').WorkflowRun[], Error>>;
|
|
73
|
+
fetchStatus: import('@tanstack/react-query').FetchStatus;
|
|
74
|
+
promise: Promise<import('@mastra/core/storage').WorkflowRun[]>;
|
|
75
|
+
} | {
|
|
76
|
+
setEndOfListElement: (node: HTMLDivElement | null) => (() => void) | undefined;
|
|
77
|
+
data: undefined;
|
|
78
|
+
error: Error;
|
|
79
|
+
isError: true;
|
|
80
|
+
isPending: false;
|
|
81
|
+
isLoading: false;
|
|
82
|
+
isLoadingError: true;
|
|
83
|
+
isRefetchError: false;
|
|
84
|
+
isFetchNextPageError: false;
|
|
85
|
+
isFetchPreviousPageError: false;
|
|
86
|
+
isSuccess: false;
|
|
87
|
+
isPlaceholderData: false;
|
|
88
|
+
status: "error";
|
|
89
|
+
fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<import('@mastra/core/storage').WorkflowRun[], Error>>;
|
|
90
|
+
fetchPreviousPage: (options?: import('@tanstack/react-query').FetchPreviousPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<import('@mastra/core/storage').WorkflowRun[], Error>>;
|
|
91
|
+
hasNextPage: boolean;
|
|
92
|
+
hasPreviousPage: boolean;
|
|
93
|
+
isFetchingNextPage: boolean;
|
|
94
|
+
isFetchingPreviousPage: boolean;
|
|
95
|
+
dataUpdatedAt: number;
|
|
96
|
+
errorUpdatedAt: number;
|
|
97
|
+
failureCount: number;
|
|
98
|
+
failureReason: Error | null;
|
|
99
|
+
errorUpdateCount: number;
|
|
100
|
+
isFetched: boolean;
|
|
101
|
+
isFetchedAfterMount: boolean;
|
|
102
|
+
isFetching: boolean;
|
|
103
|
+
isInitialLoading: boolean;
|
|
104
|
+
isPaused: boolean;
|
|
105
|
+
isRefetching: boolean;
|
|
106
|
+
isStale: boolean;
|
|
107
|
+
isEnabled: boolean;
|
|
108
|
+
refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<import('@mastra/core/storage').WorkflowRun[], Error>>;
|
|
109
|
+
fetchStatus: import('@tanstack/react-query').FetchStatus;
|
|
110
|
+
promise: Promise<import('@mastra/core/storage').WorkflowRun[]>;
|
|
111
|
+
} | {
|
|
112
|
+
setEndOfListElement: (node: HTMLDivElement | null) => (() => void) | undefined;
|
|
113
|
+
data: undefined;
|
|
114
|
+
error: null;
|
|
115
|
+
isError: false;
|
|
116
|
+
isPending: true;
|
|
117
|
+
isLoading: true;
|
|
118
|
+
isLoadingError: false;
|
|
119
|
+
isRefetchError: false;
|
|
120
|
+
isFetchNextPageError: false;
|
|
121
|
+
isFetchPreviousPageError: false;
|
|
122
|
+
isSuccess: false;
|
|
123
|
+
isPlaceholderData: false;
|
|
124
|
+
status: "pending";
|
|
125
|
+
fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<import('@mastra/core/storage').WorkflowRun[], Error>>;
|
|
126
|
+
fetchPreviousPage: (options?: import('@tanstack/react-query').FetchPreviousPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<import('@mastra/core/storage').WorkflowRun[], Error>>;
|
|
127
|
+
hasNextPage: boolean;
|
|
128
|
+
hasPreviousPage: boolean;
|
|
129
|
+
isFetchingNextPage: boolean;
|
|
130
|
+
isFetchingPreviousPage: boolean;
|
|
131
|
+
dataUpdatedAt: number;
|
|
132
|
+
errorUpdatedAt: number;
|
|
133
|
+
failureCount: number;
|
|
134
|
+
failureReason: Error | null;
|
|
135
|
+
errorUpdateCount: number;
|
|
136
|
+
isFetched: boolean;
|
|
137
|
+
isFetchedAfterMount: boolean;
|
|
138
|
+
isFetching: boolean;
|
|
139
|
+
isInitialLoading: boolean;
|
|
140
|
+
isPaused: boolean;
|
|
141
|
+
isRefetching: boolean;
|
|
142
|
+
isStale: boolean;
|
|
143
|
+
isEnabled: boolean;
|
|
144
|
+
refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<import('@mastra/core/storage').WorkflowRun[], Error>>;
|
|
145
|
+
fetchStatus: import('@tanstack/react-query').FetchStatus;
|
|
146
|
+
promise: Promise<import('@mastra/core/storage').WorkflowRun[]>;
|
|
147
|
+
} | {
|
|
148
|
+
setEndOfListElement: (node: HTMLDivElement | null) => (() => void) | undefined;
|
|
149
|
+
data: undefined;
|
|
150
|
+
error: null;
|
|
151
|
+
isError: false;
|
|
152
|
+
isPending: true;
|
|
153
|
+
isLoadingError: false;
|
|
154
|
+
isRefetchError: false;
|
|
155
|
+
isFetchNextPageError: false;
|
|
156
|
+
isFetchPreviousPageError: false;
|
|
157
|
+
isSuccess: false;
|
|
158
|
+
isPlaceholderData: false;
|
|
159
|
+
status: "pending";
|
|
160
|
+
fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<import('@mastra/core/storage').WorkflowRun[], Error>>;
|
|
161
|
+
fetchPreviousPage: (options?: import('@tanstack/react-query').FetchPreviousPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<import('@mastra/core/storage').WorkflowRun[], Error>>;
|
|
162
|
+
hasNextPage: boolean;
|
|
163
|
+
hasPreviousPage: boolean;
|
|
164
|
+
isFetchingNextPage: boolean;
|
|
165
|
+
isFetchingPreviousPage: boolean;
|
|
166
|
+
dataUpdatedAt: number;
|
|
167
|
+
errorUpdatedAt: number;
|
|
168
|
+
failureCount: number;
|
|
169
|
+
failureReason: Error | null;
|
|
170
|
+
errorUpdateCount: number;
|
|
171
|
+
isFetched: boolean;
|
|
172
|
+
isFetchedAfterMount: boolean;
|
|
173
|
+
isFetching: boolean;
|
|
174
|
+
isLoading: boolean;
|
|
175
|
+
isInitialLoading: boolean;
|
|
176
|
+
isPaused: boolean;
|
|
177
|
+
isRefetching: boolean;
|
|
178
|
+
isStale: boolean;
|
|
179
|
+
isEnabled: boolean;
|
|
180
|
+
refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<import('@mastra/core/storage').WorkflowRun[], Error>>;
|
|
181
|
+
fetchStatus: import('@tanstack/react-query').FetchStatus;
|
|
182
|
+
promise: Promise<import('@mastra/core/storage').WorkflowRun[]>;
|
|
183
|
+
} | {
|
|
184
|
+
setEndOfListElement: (node: HTMLDivElement | null) => (() => void) | undefined;
|
|
185
|
+
data: import('@mastra/core/storage').WorkflowRun[];
|
|
186
|
+
isError: false;
|
|
187
|
+
error: null;
|
|
188
|
+
isPending: false;
|
|
189
|
+
isLoading: false;
|
|
190
|
+
isLoadingError: false;
|
|
191
|
+
isRefetchError: false;
|
|
192
|
+
isSuccess: true;
|
|
193
|
+
isPlaceholderData: true;
|
|
194
|
+
isFetchNextPageError: false;
|
|
195
|
+
isFetchPreviousPageError: false;
|
|
196
|
+
status: "success";
|
|
197
|
+
fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<import('@mastra/core/storage').WorkflowRun[], Error>>;
|
|
198
|
+
fetchPreviousPage: (options?: import('@tanstack/react-query').FetchPreviousPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<import('@mastra/core/storage').WorkflowRun[], Error>>;
|
|
199
|
+
hasNextPage: boolean;
|
|
200
|
+
hasPreviousPage: boolean;
|
|
201
|
+
isFetchingNextPage: boolean;
|
|
202
|
+
isFetchingPreviousPage: boolean;
|
|
203
|
+
dataUpdatedAt: number;
|
|
204
|
+
errorUpdatedAt: number;
|
|
205
|
+
failureCount: number;
|
|
206
|
+
failureReason: Error | null;
|
|
207
|
+
errorUpdateCount: number;
|
|
208
|
+
isFetched: boolean;
|
|
209
|
+
isFetchedAfterMount: boolean;
|
|
210
|
+
isFetching: boolean;
|
|
211
|
+
isInitialLoading: boolean;
|
|
212
|
+
isPaused: boolean;
|
|
213
|
+
isRefetching: boolean;
|
|
214
|
+
isStale: boolean;
|
|
215
|
+
isEnabled: boolean;
|
|
216
|
+
refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<import('@mastra/core/storage').WorkflowRun[], Error>>;
|
|
217
|
+
fetchStatus: import('@tanstack/react-query').FetchStatus;
|
|
218
|
+
promise: Promise<import('@mastra/core/storage').WorkflowRun[]>;
|
|
219
|
+
};
|
|
4
220
|
export declare const useWorkflowRunExecutionResult: (workflowId: string, runId: string, refetchInterval?: number) => import('@tanstack/react-query').UseQueryResult<import('@mastra/core/workflows').WorkflowState, Error>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/playground-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.0-beta.
|
|
4
|
+
"version": "7.0.0-beta.6",
|
|
5
5
|
"description": "Mastra Playground components",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -82,7 +82,6 @@
|
|
|
82
82
|
"@xyflow/react": "^12.9.3",
|
|
83
83
|
"cmdk": "^1.1.1",
|
|
84
84
|
"date-fns": "^4.1.0",
|
|
85
|
-
"json-schema-to-zod": "^2.6.1",
|
|
86
85
|
"motion": "^12.23.22",
|
|
87
86
|
"prettier": "^3.6.2",
|
|
88
87
|
"prism-react-renderer": "^2.4.1",
|
|
@@ -112,9 +111,10 @@
|
|
|
112
111
|
"react": ">=19.0.0",
|
|
113
112
|
"react-dom": ">=19.0.0",
|
|
114
113
|
"tailwindcss": "^3.0.0",
|
|
115
|
-
"@mastra/
|
|
116
|
-
"@mastra/
|
|
117
|
-
"@mastra/
|
|
114
|
+
"@mastra/react": "0.1.0-beta.6",
|
|
115
|
+
"@mastra/client-js": "^1.0.0-beta.6",
|
|
116
|
+
"@mastra/ai-sdk": "^1.0.0-beta.5",
|
|
117
|
+
"@mastra/schema-compat": "1.0.0-beta.2"
|
|
118
118
|
},
|
|
119
119
|
"devDependencies": {
|
|
120
120
|
"@storybook/addon-docs": "^9.1.16",
|
|
@@ -139,10 +139,11 @@
|
|
|
139
139
|
"vite-plugin-dts": "^4.5.4",
|
|
140
140
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
141
141
|
"vitest": "4.0.12",
|
|
142
|
-
"@mastra/ai-sdk": "^1.0.0-beta.
|
|
143
|
-
"@mastra/
|
|
144
|
-
"@mastra/core": "1.0.0-beta.
|
|
145
|
-
"@mastra/
|
|
142
|
+
"@mastra/ai-sdk": "^1.0.0-beta.5",
|
|
143
|
+
"@mastra/client-js": "^1.0.0-beta.6",
|
|
144
|
+
"@mastra/core": "1.0.0-beta.6",
|
|
145
|
+
"@mastra/schema-compat": "1.0.0-beta.2",
|
|
146
|
+
"@mastra/react": "0.1.0-beta.6"
|
|
146
147
|
},
|
|
147
148
|
"homepage": "https://mastra.ai",
|
|
148
149
|
"repository": {
|