@mastra/playground-ui 7.0.0-beta.4 → 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 +83 -0
- package/dist/index.cjs.js +3509 -2842
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +3536 -2872
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/dynamic-form/index.d.ts +2 -1
- package/dist/src/components/ui/autoform/CustomAutoForm.d.ts +2 -0
- package/dist/src/components/ui/input.d.ts +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/domains/workflows/context/workflow-run-context.d.ts +26 -6
- package/dist/src/domains/workflows/hooks/use-workflows-actions.d.ts +5 -0
- package/dist/src/domains/workflows/workflow/workflow-input-data.d.ts +2 -1
- package/dist/src/domains/workflows/workflow/workflow-step-action-bar.d.ts +2 -1
- package/dist/src/domains/workflows/workflow/workflow-time-travel-form.d.ts +5 -0
- package/dist/src/hooks/use-workflow-runs.d.ts +218 -2
- package/dist/src/types.d.ts +2 -2
- package/package.json +14 -12
|
@@ -7,6 +7,7 @@ interface DynamicFormProps<T extends z.ZodSchema> {
|
|
|
7
7
|
submitButtonLabel?: string;
|
|
8
8
|
className?: string;
|
|
9
9
|
readOnly?: boolean;
|
|
10
|
+
children?: React.ReactNode;
|
|
10
11
|
}
|
|
11
|
-
export declare function DynamicForm<T extends z.ZodSchema>({ schema, onSubmit, defaultValues, isSubmitLoading, submitButtonLabel, className, readOnly, }: DynamicFormProps<T>): import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
export declare function DynamicForm<T extends z.ZodSchema>({ schema, onSubmit, defaultValues, isSubmitLoading, submitButtonLabel, className, readOnly, children, }: DynamicFormProps<T>): import("react/jsx-runtime").JSX.Element | null;
|
|
12
13
|
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { AutoFormProps } from '@autoform/react';
|
|
2
|
+
export declare function CustomAutoForm<T extends Record<string, any>>({ schema, onSubmit, defaultValues, values, children, uiComponents, formComponents, withSubmit, onFormInit, formProps, }: AutoFormProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const inputVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "
|
|
4
|
+
variant?: "default" | "unstyled" | "filled" | null | undefined;
|
|
5
5
|
customSize?: "default" | "sm" | "lg" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {
|
|
@@ -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,18 +1,38 @@
|
|
|
1
1
|
import { WorkflowRunState, WorkflowStreamResult } from '@mastra/core/workflows';
|
|
2
|
+
import { Dispatch, SetStateAction, ReactNode } from '../../../../node_modules/@types/react';
|
|
3
|
+
import { WorkflowTriggerProps } from '../workflow/workflow-trigger';
|
|
4
|
+
import { TimeTravelParams } from '@mastra/client-js';
|
|
2
5
|
export type WorkflowRunStreamResult = WorkflowStreamResult<any, any, any, any>;
|
|
3
6
|
type WorkflowRunContextType = {
|
|
4
7
|
result: WorkflowRunStreamResult | null;
|
|
5
|
-
setResult:
|
|
8
|
+
setResult: Dispatch<SetStateAction<WorkflowRunStreamResult | null>>;
|
|
6
9
|
payload: any;
|
|
7
|
-
setPayload:
|
|
10
|
+
setPayload: Dispatch<SetStateAction<any>>;
|
|
8
11
|
clearData: () => void;
|
|
9
12
|
snapshot?: WorkflowRunState;
|
|
10
13
|
runId?: string;
|
|
11
|
-
setRunId:
|
|
12
|
-
|
|
14
|
+
setRunId: Dispatch<SetStateAction<string>>;
|
|
15
|
+
workflowError: Error | null;
|
|
16
|
+
observeWorkflowStream?: ({ workflowId, runId, storeRunResult, }: {
|
|
17
|
+
workflowId: string;
|
|
18
|
+
runId: string;
|
|
19
|
+
storeRunResult: WorkflowRunStreamResult | null;
|
|
20
|
+
}) => void;
|
|
21
|
+
closeStreamsAndReset: () => void;
|
|
22
|
+
timeTravelWorkflowStream: (params: {
|
|
23
|
+
workflowId: string;
|
|
24
|
+
requestContext: Record<string, unknown>;
|
|
25
|
+
} & Omit<TimeTravelParams, 'requestContext'>) => Promise<void>;
|
|
26
|
+
runSnapshot?: WorkflowRunState;
|
|
27
|
+
isLoadingRunExecutionResult?: boolean;
|
|
28
|
+
withoutTimeTravel?: boolean;
|
|
29
|
+
} & Omit<WorkflowTriggerProps, 'paramsRunId' | 'setRunId' | 'observeWorkflowStream'>;
|
|
13
30
|
export declare const WorkflowRunContext: import('../../../../node_modules/@types/react').Context<WorkflowRunContextType>;
|
|
14
|
-
export declare function WorkflowRunProvider({ children, snapshot, }: {
|
|
15
|
-
children:
|
|
31
|
+
export declare function WorkflowRunProvider({ children, snapshot, workflowId, initialRunId, withoutTimeTravel, }: {
|
|
32
|
+
children: ReactNode;
|
|
16
33
|
snapshot?: WorkflowRunState;
|
|
34
|
+
workflowId: string;
|
|
35
|
+
initialRunId?: string;
|
|
36
|
+
withoutTimeTravel?: boolean;
|
|
17
37
|
}): import("react/jsx-runtime").JSX.Element;
|
|
18
38
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TimeTravelParams } from '@mastra/client-js';
|
|
1
2
|
import { WorkflowStreamResult as CoreWorkflowStreamResult } from '@mastra/core/workflows';
|
|
2
3
|
export declare const useExecuteWorkflow: () => {
|
|
3
4
|
startWorkflowRun: import('@tanstack/react-query').UseMutationResult<void, Error, {
|
|
@@ -42,6 +43,10 @@ export declare const useStreamWorkflow: () => {
|
|
|
42
43
|
resumeData: Record<string, unknown>;
|
|
43
44
|
requestContext: Record<string, unknown>;
|
|
44
45
|
}, unknown>;
|
|
46
|
+
timeTravelWorkflowStream: import('@tanstack/react-query').UseMutationResult<void, Error, {
|
|
47
|
+
workflowId: string;
|
|
48
|
+
requestContext: Record<string, unknown>;
|
|
49
|
+
} & Omit<TimeTravelParams, "requestContext">, unknown>;
|
|
45
50
|
};
|
|
46
51
|
export declare const useCancelWorkflowRun: () => import('@tanstack/react-query').UseMutationResult<{
|
|
47
52
|
message: string;
|
|
@@ -6,5 +6,6 @@ export interface WorkflowInputDataProps {
|
|
|
6
6
|
submitButtonLabel: string;
|
|
7
7
|
onSubmit: (data: any) => void;
|
|
8
8
|
withoutSubmit?: boolean;
|
|
9
|
+
children?: React.ReactNode;
|
|
9
10
|
}
|
|
10
|
-
export declare const WorkflowInputData: ({ schema, defaultValues, withoutSubmit, isSubmitLoading, submitButtonLabel, onSubmit, }: WorkflowInputDataProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const WorkflowInputData: ({ schema, defaultValues, withoutSubmit, isSubmitLoading, submitButtonLabel, onSubmit, children, }: WorkflowInputDataProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,5 +9,6 @@ export interface WorkflowStepActionBarProps {
|
|
|
9
9
|
mapConfig?: string;
|
|
10
10
|
onShowNestedGraph?: () => void;
|
|
11
11
|
status?: 'running' | 'success' | 'failed' | 'suspended' | 'waiting';
|
|
12
|
+
stepKey?: string;
|
|
12
13
|
}
|
|
13
|
-
export declare const WorkflowStepActionBar: ({ input, output, resumeData, suspendOutput, error, mapConfig, stepName, stepId, onShowNestedGraph, status, }: WorkflowStepActionBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const WorkflowStepActionBar: ({ input, output, resumeData, suspendOutput, error, mapConfig, stepName, stepId, onShowNestedGraph, status, stepKey, }: WorkflowStepActionBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,220 @@
|
|
|
1
1
|
export declare const useWorkflowRuns: (workflowId: string, { enabled }?: {
|
|
2
2
|
enabled?: boolean;
|
|
3
|
-
}) =>
|
|
4
|
-
|
|
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
|
+
};
|
|
220
|
+
export declare const useWorkflowRunExecutionResult: (workflowId: string, runId: string, refetchInterval?: number) => import('@tanstack/react-query').UseQueryResult<import('@mastra/core/workflows').WorkflowState, Error>;
|
package/dist/src/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetAgentResponse } from '@mastra/client-js';
|
|
1
|
+
import { GetAgentResponse, UIMessageWithMetadata } from '@mastra/client-js';
|
|
2
2
|
import { AiMessageType } from '@mastra/core/memory';
|
|
3
3
|
import { LLMStepResult } from '@mastra/core/agent';
|
|
4
4
|
import { MastraUIMessage } from '@mastra/react';
|
|
@@ -49,7 +49,7 @@ export interface ChatProps {
|
|
|
49
49
|
modelVersion?: string;
|
|
50
50
|
threadId?: string;
|
|
51
51
|
initialMessages?: MastraUIMessage[];
|
|
52
|
-
initialLegacyMessages?:
|
|
52
|
+
initialLegacyMessages?: UIMessageWithMetadata[];
|
|
53
53
|
memory?: boolean;
|
|
54
54
|
refreshThreadList?: () => void;
|
|
55
55
|
settings?: AgentSettingsType;
|
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",
|
|
@@ -103,8 +102,7 @@
|
|
|
103
102
|
"unified": "^11.0.5",
|
|
104
103
|
"use-debounce": "^10.0.6",
|
|
105
104
|
"zod": "^4.1.12",
|
|
106
|
-
"zustand": "^5.0.8"
|
|
107
|
-
"@mastra/ai-sdk": "^1.0.0-beta.3"
|
|
105
|
+
"zustand": "^5.0.8"
|
|
108
106
|
},
|
|
109
107
|
"peerDependencies": {
|
|
110
108
|
"@mastra/core": ">=1.0.0-0 <2.0.0-0",
|
|
@@ -113,8 +111,10 @@
|
|
|
113
111
|
"react": ">=19.0.0",
|
|
114
112
|
"react-dom": ">=19.0.0",
|
|
115
113
|
"tailwindcss": "^3.0.0",
|
|
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",
|
|
@@ -124,8 +124,8 @@
|
|
|
124
124
|
"@types/react": "^19.1.9",
|
|
125
125
|
"@types/react-dom": "^19.1.7",
|
|
126
126
|
"@vitejs/plugin-react": "^5.0.4",
|
|
127
|
-
"@vitest/coverage-v8": "4.0.
|
|
128
|
-
"@vitest/ui": "4.0.
|
|
127
|
+
"@vitest/coverage-v8": "4.0.12",
|
|
128
|
+
"@vitest/ui": "4.0.12",
|
|
129
129
|
"autoprefixer": "^10.4.22",
|
|
130
130
|
"class-variance-authority": "^0.7.1",
|
|
131
131
|
"clsx": "^2.1.1",
|
|
@@ -138,10 +138,12 @@
|
|
|
138
138
|
"vite": "^7.1.9",
|
|
139
139
|
"vite-plugin-dts": "^4.5.4",
|
|
140
140
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
141
|
-
"vitest": "
|
|
142
|
-
"@mastra/
|
|
143
|
-
"@mastra/
|
|
144
|
-
"@mastra/
|
|
141
|
+
"vitest": "4.0.12",
|
|
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"
|
|
145
147
|
},
|
|
146
148
|
"homepage": "https://mastra.ai",
|
|
147
149
|
"repository": {
|