@mastra/playground-ui 7.0.0-beta.8 → 7.0.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/CHANGELOG.md +219 -361
- package/dist/index.cjs.js +3831 -2515
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +3802 -2490
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/assistant-ui/memory-search.d.ts +1 -1
- package/dist/src/components/assistant-ui/messages/user-messages.d.ts +1 -0
- package/dist/src/components/assistant-ui/thread-list.d.ts +2 -0
- package/dist/src/components/assistant-ui/tools/tool-approval.d.ts +8 -0
- package/dist/src/components/assistant-ui/tooltip-icon-button.d.ts +1 -6
- package/dist/src/components/icons/agent-icon.d.ts +3 -0
- package/dist/src/components/icons/automation-icon.d.ts +3 -0
- package/dist/src/components/syntax-highlighter.d.ts +1 -2
- package/dist/src/components/ui/button.d.ts +3 -8
- package/dist/src/components/ui/copyable-content.d.ts +7 -0
- package/dist/src/components/ui/dropdown-menu.d.ts +42 -0
- package/dist/src/components/ui/elements/entry-list/entry-list-toolbar.d.ts +6 -0
- package/dist/src/components/ui/elements/form-fields/form-actions.d.ts +12 -0
- package/dist/src/components/ui/elements/form-fields/index.d.ts +4 -0
- package/dist/src/components/ui/elements/form-fields/radio-group-field.d.ts +21 -0
- package/dist/src/components/ui/elements/form-fields/slider-field.d.ts +15 -0
- package/dist/src/components/ui/elements/form-fields/textarea-field.d.ts +11 -0
- package/dist/src/components/ui/elements/headers/entity-main-header.d.ts +11 -0
- package/dist/src/components/ui/elements/headers/index.d.ts +1 -0
- package/dist/src/components/ui/elements/main-sidebar/main-sidebar.d.ts +1 -1
- package/dist/src/components/ui/elements/side-dialog/side-dialog-footer.d.ts +10 -0
- package/dist/src/components/ui/formatted-date.d.ts +3 -0
- package/dist/src/components/ui/input.d.ts +1 -1
- package/dist/src/components/ui/resizable.d.ts +23 -0
- package/dist/src/components/ui/score-indicator.d.ts +3 -0
- package/dist/src/components/ui/syntax-highlighter.d.ts +1 -1
- package/dist/src/components/ui/textarea.d.ts +1 -1
- package/dist/src/components/ui/toggle.d.ts +12 -0
- package/dist/src/domains/agents/components/agent-chat.d.ts +1 -2
- package/dist/src/domains/agents/components/agent-entity-header.d.ts +3 -1
- package/dist/src/domains/agents/components/agent-evals.d.ts +8 -0
- package/dist/src/domains/agents/components/agent-information/agent-information.d.ts +0 -25
- package/dist/src/domains/agents/components/agent-information/agent-instructions-enhancer.d.ts +4 -2
- package/dist/src/domains/agents/components/agent-information/current-instructions.d.ts +15 -0
- package/dist/src/domains/agents/components/agent-information/version-actions.d.ts +8 -0
- package/dist/src/domains/agents/components/agent-information/version-history-dialog.d.ts +9 -0
- package/dist/src/domains/agents/components/agent-information/version-history.d.ts +10 -0
- package/dist/src/domains/agents/components/agent-information/version-item.d.ts +14 -0
- package/dist/src/domains/agents/components/agent-metadata/agent-metadata-model-switcher.d.ts +2 -1
- package/dist/src/domains/agents/components/agent-metadata/agent-metadata-prompt.d.ts +4 -0
- package/dist/src/domains/agents/components/agent-metadata/agent-metadata.d.ts +13 -2
- package/dist/src/domains/agents/components/agent-metadata/connection-dot.d.ts +6 -0
- package/dist/src/domains/agents/components/agent-metadata/index.d.ts +1 -0
- package/dist/src/domains/agents/components/agent-metadata/models.d.ts +5 -0
- package/dist/src/domains/agents/components/agent-metadata/provider-status-indicator.d.ts +7 -0
- package/dist/src/domains/agents/components/agent-settings.d.ts +4 -2
- package/dist/src/domains/agents/components/{request-context.d.ts → runtime-context.d.ts} +2 -2
- package/dist/src/domains/agents/context/agent-context.d.ts +1 -2
- package/dist/src/domains/agents/context/index.d.ts +1 -1
- package/dist/src/domains/agents/context/model-reset-context.d.ts +4 -0
- package/dist/src/domains/agents/hooks/use-agent-settings-state.d.ts +1 -2
- package/dist/src/domains/agents/hooks/use-execute-agent-tool.d.ts +1 -1
- package/dist/src/domains/agents/hooks/use-prompt-enhancer.d.ts +13 -5
- package/dist/src/domains/agents/hooks/use-prompt-versions.d.ts +12 -0
- package/dist/src/domains/agents/index.d.ts +2 -4
- package/dist/src/domains/evals/hooks/index.d.ts +1 -0
- package/dist/src/domains/evals/hooks/use-evals-by-agent-id.d.ts +14 -0
- package/dist/src/domains/evals/index.d.ts +1 -0
- package/dist/src/domains/evals/types.d.ts +23 -0
- package/dist/src/domains/mcps/index.d.ts +0 -1
- package/dist/src/domains/memory/hooks/use-memory.d.ts +9 -8
- package/dist/src/domains/observability/components/helpers.d.ts +3 -3
- package/dist/src/domains/observability/components/span-details.d.ts +2 -2
- package/dist/src/domains/observability/components/span-dialog.d.ts +5 -5
- package/dist/src/domains/observability/components/span-score-list.d.ts +2 -2
- package/dist/src/domains/observability/components/span-tabs.d.ts +5 -5
- package/dist/src/domains/observability/components/trace-dialog.d.ts +3 -3
- package/dist/src/domains/observability/components/trace-span-usage.d.ts +2 -2
- package/dist/src/domains/observability/components/trace-timeline-legend.d.ts +2 -2
- package/dist/src/domains/observability/components/traces-list.d.ts +3 -3
- package/dist/src/domains/observability/index.d.ts +0 -1
- package/dist/src/domains/observability/utils/format-hierarchical-spans.d.ts +2 -2
- package/dist/src/domains/resizable-panel.d.ts +11 -0
- package/dist/src/domains/scores/components/score-dialog.d.ts +1 -1
- package/dist/src/domains/scores/components/score-table.d.ts +11 -0
- package/dist/src/domains/scores/hooks/use-scorers.d.ts +6 -3
- package/dist/src/domains/scores/hooks/use-trace-span-scores.d.ts +1 -1
- package/dist/src/domains/scores/index.d.ts +1 -2
- package/dist/src/domains/tools/components/ToolExecutor.d.ts +1 -1
- package/dist/src/domains/tools/components/index.d.ts +0 -1
- package/dist/src/domains/tools/components/tool-table/types.d.ts +2 -0
- package/dist/src/domains/tools/hooks/use-all-tools.d.ts +1 -3
- package/dist/src/domains/tools/hooks/use-execute-tool.d.ts +1 -1
- package/dist/src/domains/traces/components/traces-table.d.ts +8 -0
- package/dist/src/domains/traces/components/traces-view.d.ts +12 -0
- package/dist/src/domains/traces/context/trace-context.d.ts +20 -0
- package/dist/src/domains/traces/hooks/use-open-trace.d.ts +4 -0
- package/dist/src/domains/traces/index.d.ts +2 -0
- package/dist/src/domains/traces/mock-data.d.ts +1356 -0
- package/dist/src/domains/traces/trace-details.d.ts +1 -0
- package/dist/src/domains/traces/trace-span-details.d.ts +1 -0
- package/dist/src/domains/traces/trace-span-view.d.ts +5 -0
- package/dist/src/domains/traces/traces-sidebar.d.ts +6 -0
- package/dist/src/domains/traces/types.d.ts +55 -0
- package/dist/src/domains/traces/utils/createSpanTree.d.ts +2 -0
- package/dist/src/domains/traces/utils/getSpanVariant.d.ts +3 -0
- package/dist/src/domains/traces/utils.d.ts +12 -0
- package/dist/src/domains/workflows/context/workflow-nested-graph-context.d.ts +7 -1
- package/dist/src/domains/workflows/context/workflow-run-context.d.ts +2 -2
- package/dist/src/domains/workflows/hooks/use-workflows-actions.d.ts +21 -7
- package/dist/src/domains/workflows/index.d.ts +0 -1
- package/dist/src/domains/workflows/workflow/workflow-default-node.d.ts +8 -5
- package/dist/src/domains/workflows/workflow/workflow-graph-inner.d.ts +7 -1
- package/dist/src/domains/workflows/workflow/workflow-graph.d.ts +7 -1
- package/dist/src/domains/workflows/workflow/workflow-nested-graph.d.ts +7 -1
- package/dist/src/domains/workflows/workflow/workflow-nested-node.d.ts +8 -5
- package/dist/src/domains/workflows/workflow/workflow-result.d.ts +5 -0
- package/dist/src/domains/workflows/workflow/workflow-run-event-form.d.ts +12 -0
- package/dist/src/domains/workflows/workflow/workflow-step-action-bar.d.ts +6 -3
- package/dist/src/domains/workflows/workflow/workflow-trigger.d.ts +4 -4
- package/dist/src/ds/components/Alert/Alert.d.ts +1 -1
- package/dist/src/ds/components/Breadcrumb/Breadcrumb.d.ts +1 -2
- package/dist/src/ds/components/Button/Button.d.ts +0 -1
- package/dist/src/ds/components/Logo/MastraLogo.d.ts +1 -1
- package/dist/src/ds/components/Table/Cells.d.ts +3 -0
- package/dist/src/ds/components/TraceTree/Span.d.ts +3 -1
- package/dist/src/ds/icons/EvaluatorCoinIcon.d.ts +2 -0
- package/dist/src/ds/icons/ScoreIcon.d.ts +2 -0
- package/dist/src/ds/icons/index.d.ts +2 -0
- package/dist/src/hooks/use-agent-messages.d.ts +3 -4
- package/dist/src/hooks/use-resize-column.d.ts +12 -0
- package/dist/src/hooks/use-workflow-runs.d.ts +2 -218
- package/dist/src/index.d.ts +5 -3
- package/dist/src/lib/mastra-client.d.ts +2 -0
- package/dist/src/lib/pagination/types.d.ts +11 -0
- package/dist/src/lib/polls.d.ts +36 -0
- package/dist/src/services/mastra-runtime-provider.d.ts +1 -1
- package/dist/src/store/playground-store.d.ts +2 -2
- package/dist/src/types/memory.d.ts +7 -0
- package/dist/src/types.d.ts +3 -1
- package/package.json +25 -30
- package/dist/src/components/ui/combobox.d.ts +0 -17
- package/dist/src/domains/agents/components/agent-combobox.d.ts +0 -12
- package/dist/src/domains/agents/context/agent-prompt-experiment-context.d.ts +0 -15
- package/dist/src/domains/agents/hooks/use-agents-model-providers.d.ts +0 -1
- package/dist/src/domains/configuration/components/header-list-form.d.ts +0 -10
- package/dist/src/domains/configuration/components/studio-config-form.d.ts +0 -5
- package/dist/src/domains/configuration/context/studio-config-context.d.ts +0 -11
- package/dist/src/domains/configuration/index.d.ts +0 -3
- package/dist/src/domains/configuration/types.d.ts +0 -4
- package/dist/src/domains/mcps/components/mcp-server-combobox.d.ts +0 -12
- package/dist/src/domains/observability/components/tracing-run-options.d.ts +0 -1
- package/dist/src/domains/observability/context/tracing-settings-context.d.ts +0 -18
- package/dist/src/domains/observability/hooks/use-tracing-settings-state.d.ts +0 -10
- package/dist/src/domains/observability/utils/__tests__/span-utils.test.d.ts +0 -1
- package/dist/src/domains/observability/utils/span-utils.d.ts +0 -9
- package/dist/src/domains/scores/components/scorer-combobox.d.ts +0 -12
- package/dist/src/domains/tools/components/tool-combobox.d.ts +0 -12
- package/dist/src/domains/workflows/components/workflow-combobox.d.ts +0 -12
- package/dist/src/domains/workflows/workflow/workflow-node-badges.d.ts +0 -55
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function TraceDetails(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function SpanDetail(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export type SpanStatus = {
|
|
2
|
+
code: number;
|
|
3
|
+
};
|
|
4
|
+
export type SpanOther = {
|
|
5
|
+
droppedAttributesCount: number;
|
|
6
|
+
droppedEventsCount: number;
|
|
7
|
+
droppedLinksCount: number;
|
|
8
|
+
};
|
|
9
|
+
export type SpanEventAttributes = {
|
|
10
|
+
key: string;
|
|
11
|
+
value: {
|
|
12
|
+
[key: string]: string | number | boolean | null;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export type SpanEvent = {
|
|
16
|
+
attributes: SpanEventAttributes[];
|
|
17
|
+
name: string;
|
|
18
|
+
timeUnixNano: string;
|
|
19
|
+
droppedAttributesCount: number;
|
|
20
|
+
};
|
|
21
|
+
export type Span = {
|
|
22
|
+
id: string;
|
|
23
|
+
parentSpanId: string | null;
|
|
24
|
+
traceId: string;
|
|
25
|
+
name: string;
|
|
26
|
+
scope: string;
|
|
27
|
+
kind: number;
|
|
28
|
+
status: SpanStatus;
|
|
29
|
+
events: SpanEvent[];
|
|
30
|
+
links: any[];
|
|
31
|
+
attributes: Record<string, string | number | boolean | null>;
|
|
32
|
+
startTime: number;
|
|
33
|
+
endTime: number;
|
|
34
|
+
duration: number;
|
|
35
|
+
other: SpanOther;
|
|
36
|
+
createdAt: string;
|
|
37
|
+
};
|
|
38
|
+
export type RefinedTrace = {
|
|
39
|
+
traceId: string;
|
|
40
|
+
serviceName: string;
|
|
41
|
+
duration: number;
|
|
42
|
+
started: number;
|
|
43
|
+
status: SpanStatus;
|
|
44
|
+
trace: Span[];
|
|
45
|
+
runId?: string;
|
|
46
|
+
};
|
|
47
|
+
export type EnhancedSpan = Span & {
|
|
48
|
+
offset: number;
|
|
49
|
+
totalDurationMs: number;
|
|
50
|
+
};
|
|
51
|
+
export type SpanNode = Span & {
|
|
52
|
+
children: SpanNode[];
|
|
53
|
+
totalDurationMs: number;
|
|
54
|
+
offset: number;
|
|
55
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @param duration duration of the span
|
|
4
|
+
* @param fixedPoint how many fixed point
|
|
5
|
+
* @returns duration in milliseconds in fixed points
|
|
6
|
+
*/
|
|
7
|
+
export declare function formatDuration(duration: number, fixedPoint?: number): string;
|
|
8
|
+
export declare function formatOtelTimestamp(otelTimestamp: number): string;
|
|
9
|
+
export declare function formatOtelTimestamp2(otelTimestamp: number): string;
|
|
10
|
+
export declare function transformKey(key: string): string;
|
|
11
|
+
export declare function cleanString(string: string): string;
|
|
12
|
+
export declare const allowedAiSpanAttributes: string[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SerializedStepFlowEntry } from '@mastra/core/workflows';
|
|
2
|
+
import { WorkflowSendEventFormProps } from '../workflow/workflow-run-event-form';
|
|
2
3
|
type WorkflowNestedGraphContextType = {
|
|
3
4
|
showNestedGraph: ({ label, stepGraph, fullStep, }: {
|
|
4
5
|
label: string;
|
|
@@ -8,7 +9,12 @@ type WorkflowNestedGraphContextType = {
|
|
|
8
9
|
closeNestedGraph: () => void;
|
|
9
10
|
};
|
|
10
11
|
export declare const WorkflowNestedGraphContext: import('../../../../node_modules/@types/react').Context<WorkflowNestedGraphContextType>;
|
|
11
|
-
export declare function WorkflowNestedGraphProvider({ children }: {
|
|
12
|
+
export declare function WorkflowNestedGraphProvider({ children, onShowTrace, onSendEvent, }: {
|
|
12
13
|
children: React.ReactNode;
|
|
14
|
+
onShowTrace?: ({ runId, stepName }: {
|
|
15
|
+
runId: string;
|
|
16
|
+
stepName: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
onSendEvent?: WorkflowSendEventFormProps['onSendEvent'];
|
|
13
19
|
}): import("react/jsx-runtime").JSX.Element;
|
|
14
20
|
export {};
|
|
@@ -21,8 +21,8 @@ type WorkflowRunContextType = {
|
|
|
21
21
|
closeStreamsAndReset: () => void;
|
|
22
22
|
timeTravelWorkflowStream: (params: {
|
|
23
23
|
workflowId: string;
|
|
24
|
-
|
|
25
|
-
} & Omit<TimeTravelParams, '
|
|
24
|
+
runtimeContext: Record<string, unknown>;
|
|
25
|
+
} & Omit<TimeTravelParams, 'runtimeContext'>) => Promise<void>;
|
|
26
26
|
runSnapshot?: WorkflowRunState;
|
|
27
27
|
isLoadingRunExecutionResult?: boolean;
|
|
28
28
|
withoutTimeTravel?: boolean;
|
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
import { TimeTravelParams } from '@mastra/client-js';
|
|
1
|
+
import { TimeTravelParams, WorkflowWatchResult } from '@mastra/client-js';
|
|
2
2
|
import { WorkflowStreamResult as CoreWorkflowStreamResult } from '@mastra/core/workflows';
|
|
3
|
+
export type ExtendedWorkflowWatchResult = WorkflowWatchResult & {
|
|
4
|
+
sanitizedOutput?: string | null;
|
|
5
|
+
sanitizedError?: {
|
|
6
|
+
message: string;
|
|
7
|
+
stack?: string;
|
|
8
|
+
} | null;
|
|
9
|
+
};
|
|
3
10
|
export declare const useExecuteWorkflow: () => {
|
|
4
11
|
startWorkflowRun: import('@tanstack/react-query').UseMutationResult<void, Error, {
|
|
5
12
|
workflowId: string;
|
|
6
13
|
runId: string;
|
|
7
14
|
input: Record<string, unknown>;
|
|
8
|
-
|
|
15
|
+
runtimeContext: Record<string, unknown>;
|
|
9
16
|
}, unknown>;
|
|
10
17
|
createWorkflowRun: import('@tanstack/react-query').UseMutationResult<{
|
|
11
18
|
runId: string;
|
|
@@ -17,7 +24,7 @@ export declare const useExecuteWorkflow: () => {
|
|
|
17
24
|
workflowId: string;
|
|
18
25
|
runId?: string;
|
|
19
26
|
input: Record<string, unknown>;
|
|
20
|
-
|
|
27
|
+
runtimeContext: Record<string, unknown>;
|
|
21
28
|
}, unknown>;
|
|
22
29
|
};
|
|
23
30
|
type WorkflowStreamResult = CoreWorkflowStreamResult<any, any, any, any>;
|
|
@@ -26,7 +33,7 @@ export declare const useStreamWorkflow: () => {
|
|
|
26
33
|
workflowId: string;
|
|
27
34
|
runId: string;
|
|
28
35
|
inputData: Record<string, unknown>;
|
|
29
|
-
|
|
36
|
+
runtimeContext: Record<string, unknown>;
|
|
30
37
|
}, unknown>;
|
|
31
38
|
streamResult: WorkflowStreamResult;
|
|
32
39
|
isStreaming: boolean;
|
|
@@ -41,12 +48,12 @@ export declare const useStreamWorkflow: () => {
|
|
|
41
48
|
step: string | string[];
|
|
42
49
|
runId: string;
|
|
43
50
|
resumeData: Record<string, unknown>;
|
|
44
|
-
|
|
51
|
+
runtimeContext: Record<string, unknown>;
|
|
45
52
|
}, unknown>;
|
|
46
53
|
timeTravelWorkflowStream: import('@tanstack/react-query').UseMutationResult<void, Error, {
|
|
47
54
|
workflowId: string;
|
|
48
|
-
|
|
49
|
-
} & Omit<TimeTravelParams, "
|
|
55
|
+
runtimeContext: Record<string, unknown>;
|
|
56
|
+
} & Omit<TimeTravelParams, "runtimeContext">, unknown>;
|
|
50
57
|
};
|
|
51
58
|
export declare const useCancelWorkflowRun: () => import('@tanstack/react-query').UseMutationResult<{
|
|
52
59
|
message: string;
|
|
@@ -54,4 +61,11 @@ export declare const useCancelWorkflowRun: () => import('@tanstack/react-query')
|
|
|
54
61
|
workflowId: string;
|
|
55
62
|
runId: string;
|
|
56
63
|
}, unknown>;
|
|
64
|
+
export declare const useSendWorkflowRunEvent: (workflowId: string) => import('@tanstack/react-query').UseMutationResult<{
|
|
65
|
+
message: string;
|
|
66
|
+
}, Error, {
|
|
67
|
+
runId: string;
|
|
68
|
+
event: string;
|
|
69
|
+
data: unknown;
|
|
70
|
+
}, unknown>;
|
|
57
71
|
export {};
|
|
@@ -5,6 +5,5 @@ export * from './context/use-current-run';
|
|
|
5
5
|
export * from './runs/workflow-run-details';
|
|
6
6
|
export * from './components/workflow-table/workflow-table';
|
|
7
7
|
export * from './components/workflow-information';
|
|
8
|
-
export * from './components/workflow-combobox';
|
|
9
8
|
export * from './utils';
|
|
10
9
|
export * from './hooks';
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { NodeProps, Node } from '@xyflow/react';
|
|
2
|
+
import { WorkflowSendEventFormProps } from './workflow-run-event-form';
|
|
2
3
|
export type DefaultNode = Node<{
|
|
3
4
|
label: string;
|
|
4
|
-
stepId?: string;
|
|
5
5
|
description?: string;
|
|
6
6
|
withoutTopHandle?: boolean;
|
|
7
7
|
withoutBottomHandle?: boolean;
|
|
8
8
|
mapConfig?: string;
|
|
9
|
+
event?: string;
|
|
9
10
|
duration?: number;
|
|
10
11
|
date?: Date;
|
|
11
|
-
isParallel?: boolean;
|
|
12
|
-
canSuspend?: boolean;
|
|
13
|
-
isForEach?: boolean;
|
|
14
12
|
}, 'default-node'>;
|
|
15
13
|
export interface WorkflowDefaultNodeProps {
|
|
14
|
+
onShowTrace?: ({ runId, stepName }: {
|
|
15
|
+
runId: string;
|
|
16
|
+
stepName: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
onSendEvent?: WorkflowSendEventFormProps['onSendEvent'];
|
|
16
19
|
parentWorkflowName?: string;
|
|
17
20
|
}
|
|
18
|
-
export declare function WorkflowDefaultNode({ data, parentWorkflowName }: NodeProps<DefaultNode> & WorkflowDefaultNodeProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function WorkflowDefaultNode({ data, onShowTrace, parentWorkflowName, onSendEvent, }: NodeProps<DefaultNode> & WorkflowDefaultNodeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { GetWorkflowResponse } from '@mastra/client-js';
|
|
2
|
+
import { WorkflowSendEventFormProps } from './workflow-run-event-form';
|
|
2
3
|
export interface WorkflowGraphInnerProps {
|
|
3
4
|
workflow: {
|
|
4
5
|
stepGraph: GetWorkflowResponse['stepGraph'];
|
|
5
6
|
};
|
|
7
|
+
onShowTrace?: ({ runId, stepName }: {
|
|
8
|
+
runId: string;
|
|
9
|
+
stepName: string;
|
|
10
|
+
}) => void;
|
|
11
|
+
onSendEvent?: WorkflowSendEventFormProps['onSendEvent'];
|
|
6
12
|
}
|
|
7
|
-
export declare function WorkflowGraphInner({ workflow }: WorkflowGraphInnerProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function WorkflowGraphInner({ workflow, onShowTrace, onSendEvent }: WorkflowGraphInnerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { GetWorkflowResponse } from '@mastra/client-js';
|
|
2
|
+
import { WorkflowSendEventFormProps } from './workflow-run-event-form';
|
|
2
3
|
export interface WorkflowGraphProps {
|
|
3
4
|
workflowId: string;
|
|
4
5
|
isLoading?: boolean;
|
|
5
6
|
workflow?: GetWorkflowResponse;
|
|
7
|
+
onShowTrace?: ({ runId, stepName }: {
|
|
8
|
+
runId: string;
|
|
9
|
+
stepName: string;
|
|
10
|
+
}) => void;
|
|
11
|
+
onSendEvent?: WorkflowSendEventFormProps['onSendEvent'];
|
|
6
12
|
}
|
|
7
|
-
export declare function WorkflowGraph({ workflowId, workflow, isLoading }: WorkflowGraphProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function WorkflowGraph({ workflowId, onShowTrace, workflow, isLoading, onSendEvent }: WorkflowGraphProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { SerializedStepFlowEntry } from '@mastra/core/workflows';
|
|
2
|
+
import { WorkflowSendEventFormProps } from './workflow-run-event-form';
|
|
2
3
|
export interface WorkflowNestedGraphProps {
|
|
3
4
|
stepGraph: SerializedStepFlowEntry[];
|
|
4
5
|
open: boolean;
|
|
5
6
|
workflowName: string;
|
|
7
|
+
onShowTrace?: ({ runId, stepName }: {
|
|
8
|
+
runId: string;
|
|
9
|
+
stepName: string;
|
|
10
|
+
}) => void;
|
|
11
|
+
onSendEvent?: WorkflowSendEventFormProps['onSendEvent'];
|
|
6
12
|
}
|
|
7
|
-
export declare function WorkflowNestedGraph({ stepGraph, open, workflowName }: WorkflowNestedGraphProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function WorkflowNestedGraph({ stepGraph, open, workflowName, onShowTrace, onSendEvent, }: WorkflowNestedGraphProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { NodeProps, Node } from '@xyflow/react';
|
|
2
2
|
import { SerializedStepFlowEntry } from '@mastra/core/workflows';
|
|
3
|
+
import { WorkflowSendEventFormProps } from './workflow-run-event-form';
|
|
3
4
|
export type NestedNode = Node<{
|
|
4
5
|
label: string;
|
|
5
|
-
stepId?: string;
|
|
6
6
|
description?: string;
|
|
7
7
|
withoutTopHandle?: boolean;
|
|
8
8
|
withoutBottomHandle?: boolean;
|
|
9
9
|
stepGraph: SerializedStepFlowEntry[];
|
|
10
10
|
mapConfig?: string;
|
|
11
|
-
|
|
12
|
-
canSuspend?: boolean;
|
|
13
|
-
isForEach?: boolean;
|
|
11
|
+
event?: string;
|
|
14
12
|
}, 'nested-node'>;
|
|
15
13
|
export interface WorkflowNestedNodeProps {
|
|
14
|
+
onShowTrace?: ({ runId, stepName }: {
|
|
15
|
+
runId: string;
|
|
16
|
+
stepName: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
onSendEvent?: WorkflowSendEventFormProps['onSendEvent'];
|
|
16
19
|
parentWorkflowName?: string;
|
|
17
20
|
}
|
|
18
|
-
export declare function WorkflowNestedNode({ data, parentWorkflowName }: NodeProps<NestedNode> & WorkflowNestedNodeProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function WorkflowNestedNode({ data, parentWorkflowName, onShowTrace, onSendEvent, }: NodeProps<NestedNode> & WorkflowNestedNodeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type WorkflowSendEventFormProps = {
|
|
2
|
+
event: string;
|
|
3
|
+
runId: string;
|
|
4
|
+
onSendEvent: (params: {
|
|
5
|
+
event: string;
|
|
6
|
+
data: unknown;
|
|
7
|
+
runId: string;
|
|
8
|
+
}) => Promise<{
|
|
9
|
+
message: string;
|
|
10
|
+
}>;
|
|
11
|
+
};
|
|
12
|
+
export declare const WorkflowRunEventForm: ({ event, runId, onSendEvent }: WorkflowSendEventFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
import { WorkflowSendEventFormProps } from './workflow-run-event-form';
|
|
1
2
|
export interface WorkflowStepActionBarProps {
|
|
2
3
|
input?: any;
|
|
3
4
|
output?: any;
|
|
4
|
-
suspendOutput?: any;
|
|
5
5
|
resumeData?: any;
|
|
6
6
|
error?: any;
|
|
7
7
|
stepName: string;
|
|
8
|
-
stepId?: string;
|
|
9
8
|
mapConfig?: string;
|
|
9
|
+
event?: string;
|
|
10
|
+
onShowTrace?: () => void;
|
|
10
11
|
onShowNestedGraph?: () => void;
|
|
12
|
+
onSendEvent?: WorkflowSendEventFormProps['onSendEvent'];
|
|
13
|
+
runId?: string;
|
|
11
14
|
status?: 'running' | 'success' | 'failed' | 'suspended' | 'waiting';
|
|
12
15
|
stepKey?: string;
|
|
13
16
|
}
|
|
14
|
-
export declare const WorkflowStepActionBar: ({ input, output, resumeData,
|
|
17
|
+
export declare const WorkflowStepActionBar: ({ input, output, resumeData, error, mapConfig, stepName, event, onShowTrace, onShowNestedGraph, onSendEvent, runId, status, stepKey, }: WorkflowStepActionBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,22 +13,22 @@ export interface WorkflowTriggerProps {
|
|
|
13
13
|
runId: string;
|
|
14
14
|
}>;
|
|
15
15
|
isStreamingWorkflow: boolean;
|
|
16
|
-
streamWorkflow: ({ workflowId, runId, inputData,
|
|
16
|
+
streamWorkflow: ({ workflowId, runId, inputData, runtimeContext, }: {
|
|
17
17
|
workflowId: string;
|
|
18
18
|
runId: string;
|
|
19
19
|
inputData: Record<string, unknown>;
|
|
20
|
-
|
|
20
|
+
runtimeContext: Record<string, unknown>;
|
|
21
21
|
}) => Promise<void>;
|
|
22
22
|
observeWorkflowStream?: ({ workflowId, runId }: {
|
|
23
23
|
workflowId: string;
|
|
24
24
|
runId: string;
|
|
25
25
|
}) => void;
|
|
26
|
-
resumeWorkflow: ({ workflowId, step, runId, resumeData,
|
|
26
|
+
resumeWorkflow: ({ workflowId, step, runId, resumeData, runtimeContext, }: {
|
|
27
27
|
workflowId: string;
|
|
28
28
|
step: string | string[];
|
|
29
29
|
runId: string;
|
|
30
30
|
resumeData: Record<string, unknown>;
|
|
31
|
-
|
|
31
|
+
runtimeContext: Record<string, unknown>;
|
|
32
32
|
}) => Promise<void>;
|
|
33
33
|
streamResult: WorkflowRunStreamResult | null;
|
|
34
34
|
isCancellingWorkflowRun: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from '../../../../node_modules/@types/react';
|
|
2
2
|
import { TxtProps } from '../Txt';
|
|
3
|
-
type AlertVariant = 'warning' | 'destructive'
|
|
3
|
+
type AlertVariant = 'warning' | 'destructive';
|
|
4
4
|
export interface AlertProps {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
variant: AlertVariant;
|
|
@@ -11,6 +11,5 @@ export interface CrumbProps {
|
|
|
11
11
|
to: string;
|
|
12
12
|
prefetch?: boolean | null;
|
|
13
13
|
children: React.ReactNode;
|
|
14
|
-
action?: React.ReactNode;
|
|
15
14
|
}
|
|
16
|
-
export declare const Crumb: ({ className, as, isCurrent,
|
|
15
|
+
export declare const Crumb: ({ className, as, isCurrent, ...props }: CrumbProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,6 +9,5 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
9
9
|
size?: 'md' | 'lg';
|
|
10
10
|
variant?: 'default' | 'light';
|
|
11
11
|
target?: string;
|
|
12
|
-
type?: 'button' | 'submit' | 'reset';
|
|
13
12
|
}
|
|
14
13
|
export declare const Button: ({ className, as, size, variant, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { default as React } from '../../../../node_modules/@types/react';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const DarkLogo: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,6 +5,9 @@ export interface CellProps extends React.TdHTMLAttributes<HTMLTableCellElement>
|
|
|
5
5
|
}
|
|
6
6
|
export declare const Cell: ({ className, children, ...props }: CellProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export declare const TxtCell: ({ className, children }: CellProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const UnitCell: ({ className, children, unit }: CellProps & {
|
|
9
|
+
unit: string;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
export interface DateTimeCellProps extends Omit<CellProps, 'children'> {
|
|
9
12
|
dateTime: Date;
|
|
10
13
|
}
|
|
@@ -2,7 +2,7 @@ import { default as React } from '../../../../node_modules/@types/react';
|
|
|
2
2
|
export interface SpanProps {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
durationMs: number;
|
|
5
|
-
variant: 'tool' | 'agent' | 'workflow' | 'memory' | 'rag' | 'storage' | 'other';
|
|
5
|
+
variant: 'tool' | 'agent' | 'workflow' | 'memory' | 'rag' | 'storage' | 'eval' | 'other';
|
|
6
6
|
tokenCount?: number;
|
|
7
7
|
spans?: React.ReactNode;
|
|
8
8
|
isRoot?: boolean;
|
|
@@ -18,6 +18,7 @@ export declare const spanIconMap: {
|
|
|
18
18
|
memory: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
rag: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
storage: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
eval: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
21
22
|
other: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
22
23
|
};
|
|
23
24
|
export declare const spanVariantClasses: {
|
|
@@ -27,6 +28,7 @@ export declare const spanVariantClasses: {
|
|
|
27
28
|
memory: string;
|
|
28
29
|
rag: string;
|
|
29
30
|
storage: string;
|
|
31
|
+
eval: string;
|
|
30
32
|
other: string;
|
|
31
33
|
};
|
|
32
34
|
export declare const Span: ({ children, durationMs, variant, tokenCount, spans, isRoot, onClick, isActive, offsetMs, totalDurationMs, }: SpanProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,6 +13,7 @@ export * from './DeploymentIcon';
|
|
|
13
13
|
export * from './DividerIcon';
|
|
14
14
|
export * from './DocsIcon';
|
|
15
15
|
export * from './EnvIcon';
|
|
16
|
+
export * from './EvaluatorCoinIcon';
|
|
16
17
|
export * from './FiltersIcon';
|
|
17
18
|
export * from './GithubCoinIcon';
|
|
18
19
|
export * from './GithubIcon';
|
|
@@ -26,6 +27,7 @@ export * from './LogsIcon';
|
|
|
26
27
|
export * from './MemoryIcon';
|
|
27
28
|
export * from './OpenAIIcon';
|
|
28
29
|
export * from './PromptIcon';
|
|
30
|
+
export * from './ScoreIcon';
|
|
29
31
|
export * from './SettingsIcon';
|
|
30
32
|
export * from './SlashIcon';
|
|
31
33
|
export * from './ToolsIcon';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
threadId
|
|
1
|
+
export declare const useAgentMessages: ({ threadId, agentId, memory, }: {
|
|
2
|
+
threadId: string;
|
|
3
3
|
agentId: string;
|
|
4
4
|
memory: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare const useAgentMessages: ({ threadId, agentId, memory }: UseAgentMessagesProps) => import('@tanstack/react-query').UseQueryResult<import('@mastra/client-js').ListMemoryThreadMessagesResponse | null, Error>;
|
|
5
|
+
}) => import('@tanstack/react-query').UseQueryResult<import('@mastra/client-js').GetMemoryThreadMessagesResponse, Error>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MouseEvent as ReactMouseEvent } from '../../node_modules/@types/react';
|
|
2
|
+
export declare const useResizeColumn: ({ defaultWidth, minimumWidth, maximumWidth, setCurrentWidth, }: {
|
|
3
|
+
defaultWidth: number;
|
|
4
|
+
minimumWidth: number;
|
|
5
|
+
maximumWidth: number;
|
|
6
|
+
setCurrentWidth?: (width: number) => void;
|
|
7
|
+
}) => {
|
|
8
|
+
sidebarWidth: number;
|
|
9
|
+
isDragging: boolean;
|
|
10
|
+
handleMouseDown: (e: ReactMouseEvent) => void;
|
|
11
|
+
containerRef: import('../../node_modules/@types/react').RefObject<HTMLDivElement | null>;
|
|
12
|
+
};
|