@mastra/playground-ui 0.0.0-vnextWorkflows-20250422142014 → 0.0.0-workflow-deno-20250616130925
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/colors-CBG_Mm7P.js +26 -0
- package/dist/colors-CBG_Mm7P.js.map +1 -0
- package/dist/colors-Du4i-E0i.cjs +30 -0
- package/dist/colors-Du4i-E0i.cjs.map +1 -0
- package/dist/index.cjs.js +4519 -2201
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +2 -2
- package/dist/index.d.ts +1 -16
- package/dist/index.es.js +4484 -2204
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/assistant-ui/attachment-adapters/pdfs-adapter.d.ts +12 -0
- package/dist/src/components/assistant-ui/image-with-fallback.d.ts +3 -0
- package/dist/src/components/assistant-ui/thread.d.ts +12 -0
- package/dist/src/components/assistant-ui/use-has-attachments.d.ts +1 -0
- package/dist/src/components/assistant-ui/user-message.d.ts +1 -0
- package/dist/{components → src/components}/dynamic-form/index.d.ts +4 -2
- package/dist/src/components/threads.d.ts +28 -0
- package/dist/src/components/ui/autoform/AutoForm.d.ts +15 -0
- package/dist/{components → src/components}/ui/button.d.ts +1 -1
- package/dist/{components → src/components}/ui/command.d.ts +2 -2
- package/dist/src/components/ui/containers/MainContent.d.ts +13 -0
- package/dist/src/components/ui/containers/index.d.ts +1 -0
- package/dist/{components → src/components}/ui/copy-button.d.ts +2 -2
- package/dist/{components → src/components}/ui/data-table.d.ts +2 -1
- package/dist/{components → src/components}/ui/form.d.ts +1 -1
- package/dist/{components → src/components}/ui/resizable.d.ts +1 -1
- package/dist/src/components/ui/slider.d.ts +4 -0
- package/dist/src/contexts/mastra-client-context.d.ts +9 -0
- package/dist/src/domains/agents/agent/agent-chat.d.ts +3 -0
- package/dist/src/domains/agents/agent/agent-evals.d.ts +9 -0
- package/dist/src/domains/agents/agent/agent-traces.d.ts +10 -0
- package/dist/src/domains/agents/agent/context/agent-context.d.ts +19 -0
- package/dist/{hooks/use-evals.d.ts → src/domains/evals/types.d.ts} +8 -3
- package/dist/src/domains/networks/index.d.ts +2 -0
- package/dist/src/domains/networks/network-context.d.ts +13 -0
- package/dist/{domains → src/domains}/traces/context/trace-context.d.ts +3 -6
- package/dist/{domains → src/domains}/traces/trace-details.d.ts +1 -1
- package/dist/{domains → src/domains}/traces/trace-span-details.d.ts +1 -1
- package/dist/src/domains/traces/trace-span-view.d.ts +6 -0
- package/dist/src/domains/traces/traces-sidebar.d.ts +6 -0
- package/dist/src/domains/traces/traces-table.d.ts +9 -0
- package/dist/{domains → src/domains}/traces/types.d.ts +10 -4
- package/dist/src/domains/traces/utils/createSpanTree.d.ts +3 -0
- package/dist/src/domains/traces/utils/getSpanVariant.d.ts +4 -0
- package/dist/{domains → src/domains}/traces/utils.d.ts +1 -4
- package/dist/src/domains/workflows/context/legacy-workflow-nested-graph-context.d.ts +13 -0
- package/dist/src/domains/workflows/context/use-current-run.d.ts +15 -0
- package/dist/{domains → src/domains}/workflows/context/workflow-nested-graph-context.d.ts +5 -3
- package/dist/src/domains/workflows/context/workflow-run-context.d.ts +19 -0
- package/dist/src/domains/workflows/index.d.ts +8 -0
- package/dist/src/domains/workflows/runs/workflow-runs.d.ts +13 -0
- package/dist/src/domains/workflows/utils.d.ts +4 -0
- package/dist/src/domains/workflows/workflow/legacy-workflow-graph-inner.d.ts +5 -0
- package/dist/src/domains/workflows/workflow/legacy-workflow-graph.d.ts +4 -0
- package/dist/{domains/workflows/workflow/workflow-nested-graph.d.ts → src/domains/workflows/workflow/legacy-workflow-nested-graph.d.ts} +1 -1
- package/dist/{domains/workflows/workflow/workflow-nested-node.d.ts → src/domains/workflows/workflow/legacy-workflow-nested-node.d.ts} +3 -2
- package/dist/src/domains/workflows/workflow/legacy-workflow-status.d.ts +6 -0
- package/dist/{domains/workflows/workflow/workflow-trigger.d.ts → src/domains/workflows/workflow/legacy-workflow-trigger.d.ts} +1 -2
- package/dist/{domains → src/domains}/workflows/workflow/utils.d.ts +10 -3
- package/dist/src/domains/workflows/workflow/workflow-card.d.ts +6 -0
- package/dist/src/domains/workflows/workflow/workflow-clock.d.ts +6 -0
- package/dist/src/domains/workflows/workflow/workflow-code-dialog-content.d.ts +3 -0
- package/dist/{domains → src/domains}/workflows/workflow/workflow-condition-node.d.ts +3 -0
- package/dist/src/domains/workflows/workflow/workflow-default-node.d.ts +18 -0
- package/dist/src/domains/workflows/workflow/workflow-graph-inner.d.ts +12 -0
- package/dist/src/domains/workflows/workflow/workflow-graph.d.ts +12 -0
- package/dist/src/domains/workflows/workflow/workflow-nested-graph.d.ts +8 -0
- package/dist/src/domains/workflows/workflow/workflow-nested-node.d.ts +14 -0
- package/dist/src/domains/workflows/workflow/workflow-result.d.ts +5 -0
- package/dist/src/domains/workflows/workflow/workflow-status.d.ts +5 -0
- package/dist/src/domains/workflows/workflow/workflow-step-action-bar.d.ts +9 -0
- package/dist/src/domains/workflows/workflow/workflow-traces.d.ts +11 -0
- package/dist/src/domains/workflows/workflow/workflow-trigger.d.ts +8 -0
- package/dist/src/domains/workflows/workflow/zoom-slider.d.ts +4 -0
- package/dist/src/ds/components/Avatar/Avatar.d.ts +5 -0
- package/dist/src/ds/components/Avatar/index.d.ts +1 -0
- package/dist/{ds → src/ds}/components/Button/Button.d.ts +3 -1
- package/dist/src/ds/components/EmptyState/EmptyState.d.ts +10 -0
- package/dist/src/ds/components/EmptyState/index.d.ts +1 -0
- package/dist/src/ds/components/Entity/Entity.d.ts +10 -0
- package/dist/src/ds/components/Entity/index.d.ts +1 -0
- package/dist/{ds → src/ds}/components/Header/Header.d.ts +2 -1
- package/dist/{ds → src/ds}/components/Table/Table.d.ts +2 -1
- package/dist/src/ds/components/TraceTree/Span.d.ts +35 -0
- package/dist/src/ds/components/TraceTree/Spans.d.ts +6 -0
- package/dist/src/ds/components/TraceTree/Time.d.ts +8 -0
- package/dist/src/ds/components/TraceTree/Trace.d.ts +14 -0
- package/dist/src/ds/components/TraceTree/TraceTree.d.ts +6 -0
- package/dist/src/ds/components/TraceTree/index.d.ts +1 -0
- package/dist/{ds → src/ds}/components/Txt/Txt.d.ts +5 -2
- package/dist/src/ds/icons/AgentCoinIcon.d.ts +3 -0
- package/dist/src/ds/icons/AgentNetworkCoinIcon.d.ts +1 -0
- package/dist/src/ds/icons/ChevronIcon.d.ts +3 -0
- package/dist/src/ds/icons/EvaluatorCoinIcon.d.ts +3 -0
- package/dist/src/ds/icons/FolderIcon.d.ts +3 -0
- package/dist/src/ds/icons/GithubCoinIcon.d.ts +3 -0
- package/dist/src/ds/icons/GithubIcon.d.ts +3 -0
- package/dist/src/ds/icons/GoogleIcon.d.ts +3 -0
- package/dist/{ds → src/ds}/icons/Icon.d.ts +1 -1
- package/dist/src/ds/icons/LatencyIcon.d.ts +3 -0
- package/dist/src/ds/icons/McpCoinIcon.d.ts +3 -0
- package/dist/src/ds/icons/McpServerIcon.d.ts +3 -0
- package/dist/src/ds/icons/RepoIcon.d.ts +3 -0
- package/dist/src/ds/icons/ToolCoinIcon.d.ts +3 -0
- package/dist/src/ds/icons/WorkflowCoinIcon.d.ts +3 -0
- package/dist/{ds → src/ds}/icons/index.d.ts +14 -0
- package/dist/{ds → src/ds}/tokens/sizes.d.ts +4 -1
- package/dist/src/hooks/use-speech-recognition.d.ts +15 -0
- package/dist/src/hooks/use-workflows.d.ts +87 -0
- package/dist/src/index.d.ts +25 -0
- package/dist/src/lib/file.d.ts +1 -0
- package/dist/src/lib/mastra-client.d.ts +3 -0
- package/dist/src/lib/number.d.ts +1 -0
- package/dist/src/main.d.ts +1 -0
- package/dist/{services → src/services}/mastra-runtime-provider.d.ts +1 -1
- package/dist/{services → src/services}/network-runtime-provider.d.ts +1 -1
- package/dist/src/store/agent-store.d.ts +20 -0
- package/dist/src/store/playground-store.d.ts +16 -0
- package/dist/{types.d.ts → src/types.d.ts} +4 -5
- package/dist/tokens.cjs.js +10 -29
- package/dist/tokens.cjs.js.map +1 -1
- package/dist/tokens.d.ts +1 -1
- package/dist/tokens.es.js +8 -27
- package/dist/tokens.es.js.map +1 -1
- package/package.json +48 -46
- package/dist/components/assistant-ui/assistant-modal.d.ts +0 -3
- package/dist/components/assistant-ui/assistant-sidebar.d.ts +0 -3
- package/dist/components/assistant-ui/thread.d.ts +0 -7
- package/dist/components/assistant-ui/user-message.d.ts +0 -3
- package/dist/components/syntax-highlighter.d.ts +0 -4
- package/dist/components/ui/autoform/AutoForm.d.ts +0 -13
- package/dist/components/ui/syntax-highlighter.d.ts +0 -5
- package/dist/domains/agents/agent/agent-chat.d.ts +0 -3
- package/dist/domains/agents/agent/agent-evals.d.ts +0 -4
- package/dist/domains/agents/agent/agent-traces.d.ts +0 -8
- package/dist/domains/agents/agent/context/agent-context.d.ts +0 -15
- package/dist/domains/networks/index.d.ts +0 -1
- package/dist/domains/traces/trace-span-view.d.ts +0 -8
- package/dist/domains/traces/trace-tree-view.d.ts +0 -6
- package/dist/domains/traces/traces-sidebar.d.ts +0 -9
- package/dist/domains/traces/traces-table.d.ts +0 -10
- package/dist/domains/workflows/context/workflow-run-context.d.ts +0 -14
- package/dist/domains/workflows/index.d.ts +0 -4
- package/dist/domains/workflows/workflow/workflow-default-node.d.ts +0 -9
- package/dist/domains/workflows/workflow/workflow-graph-inner.d.ts +0 -5
- package/dist/domains/workflows/workflow/workflow-graph.d.ts +0 -5
- package/dist/domains/workflows/workflow/workflow-traces.d.ts +0 -8
- package/dist/ds/icons/SpanIcon.d.ts +0 -3
- package/dist/hooks/use-traces.d.ts +0 -9
- package/dist/hooks/use-workflows.d.ts +0 -47
- /package/dist/{components → src/components}/assistant-ui/assistant-message.d.ts +0 -0
- /package/dist/{main.d.ts → src/components/assistant-ui/assistant-modal.d.ts} +0 -0
- /package/dist/{components → src/components}/assistant-ui/attachment.d.ts +0 -0
- /package/dist/{components → src/components}/assistant-ui/markdown-text.d.ts +0 -0
- /package/dist/{components → src/components}/assistant-ui/syntax-highlighter.d.ts +0 -0
- /package/dist/{components → src/components}/assistant-ui/thread-list.d.ts +0 -0
- /package/dist/{components → src/components}/assistant-ui/tool-fallback.d.ts +0 -0
- /package/dist/{components → src/components}/assistant-ui/tooltip-icon-button.d.ts +0 -0
- /package/dist/{components → src/components}/dynamic-form/utils.d.ts +0 -0
- /package/dist/{components → src/components}/icons/agent-icon.d.ts +0 -0
- /package/dist/{components → src/components}/icons/automation-icon.d.ts +0 -0
- /package/dist/{components → src/components}/ui/alert.d.ts +0 -0
- /package/dist/{components → src/components}/ui/autoform/components/ArrayElementWrapper.d.ts +0 -0
- /package/dist/{components → src/components}/ui/autoform/components/ArrayWrapper.d.ts +0 -0
- /package/dist/{components → src/components}/ui/autoform/components/BooleanField.d.ts +0 -0
- /package/dist/{components → src/components}/ui/autoform/components/DateField.d.ts +0 -0
- /package/dist/{components → src/components}/ui/autoform/components/ErrorMessage.d.ts +0 -0
- /package/dist/{components → src/components}/ui/autoform/components/FieldWrapper.d.ts +0 -0
- /package/dist/{components → src/components}/ui/autoform/components/Form.d.ts +0 -0
- /package/dist/{components → src/components}/ui/autoform/components/NumberField.d.ts +0 -0
- /package/dist/{components → src/components}/ui/autoform/components/ObjectWrapper.d.ts +0 -0
- /package/dist/{components → src/components}/ui/autoform/components/RecordField.d.ts +0 -0
- /package/dist/{components → src/components}/ui/autoform/components/SelectField.d.ts +0 -0
- /package/dist/{components → src/components}/ui/autoform/components/StringField.d.ts +0 -0
- /package/dist/{components → src/components}/ui/autoform/components/SubmitButton.d.ts +0 -0
- /package/dist/{components → src/components}/ui/autoform/index.d.ts +0 -0
- /package/dist/{components → src/components}/ui/autoform/types.d.ts +0 -0
- /package/dist/{components → src/components}/ui/autoform/utils.d.ts +0 -0
- /package/dist/{components → src/components}/ui/autoform/zodProvider/field-type-inference.d.ts +0 -0
- /package/dist/{components → src/components}/ui/autoform/zodProvider/index.d.ts +0 -0
- /package/dist/{components → src/components}/ui/avatar.d.ts +0 -0
- /package/dist/{components → src/components}/ui/badge.d.ts +0 -0
- /package/dist/{components → src/components}/ui/calendar.d.ts +0 -0
- /package/dist/{components → src/components}/ui/card.d.ts +0 -0
- /package/dist/{components → src/components}/ui/checkbox.d.ts +0 -0
- /package/dist/{components → src/components}/ui/code-block.d.ts +0 -0
- /package/dist/{components → src/components}/ui/collapsible.d.ts +0 -0
- /package/dist/{components → src/components}/ui/copyable-content.d.ts +0 -0
- /package/dist/{components → src/components}/ui/date-picker.d.ts +0 -0
- /package/dist/{components → src/components}/ui/dialog.d.ts +0 -0
- /package/dist/{components → src/components}/ui/formatted-date.d.ts +0 -0
- /package/dist/{components → src/components}/ui/input.d.ts +0 -0
- /package/dist/{components → src/components}/ui/label.d.ts +0 -0
- /package/dist/{components → src/components}/ui/markdown-renderer.d.ts +0 -0
- /package/dist/{components → src/components}/ui/popover.d.ts +0 -0
- /package/dist/{components → src/components}/ui/score-indicator.d.ts +0 -0
- /package/dist/{components → src/components}/ui/scroll-area.d.ts +0 -0
- /package/dist/{components → src/components}/ui/select.d.ts +0 -0
- /package/dist/{components → src/components}/ui/skeleton.d.ts +0 -0
- /package/dist/{components → src/components}/ui/spinner.d.ts +0 -0
- /package/dist/{components → src/components}/ui/switch.d.ts +0 -0
- /package/dist/{components → src/components}/ui/table.d.ts +0 -0
- /package/dist/{components → src/components}/ui/tabs.d.ts +0 -0
- /package/dist/{components → src/components}/ui/text.d.ts +0 -0
- /package/dist/{components → src/components}/ui/textarea.d.ts +0 -0
- /package/dist/{components → src/components}/ui/toggle.d.ts +0 -0
- /package/dist/{components → src/components}/ui/tooltip.d.ts +0 -0
- /package/dist/{domains → src/domains}/agents/index.d.ts +0 -0
- /package/dist/{domains → src/domains}/networks/network-chat.d.ts +0 -0
- /package/dist/{domains → src/domains}/networks/tool-fallback.d.ts +0 -0
- /package/dist/{domains → src/domains}/resizable-panel.d.ts +0 -0
- /package/dist/{domains → src/domains}/traces/hooks/use-open-trace.d.ts +0 -0
- /package/dist/{domains → src/domains}/traces/mock-data.d.ts +0 -0
- /package/dist/{domains → src/domains}/workflows/workflow/workflow-after-node.d.ts +0 -0
- /package/dist/{domains → src/domains}/workflows/workflow/workflow-loop-result-node.d.ts +0 -0
- /package/dist/{ds → src/ds}/components/Badge/Badge.d.ts +0 -0
- /package/dist/{ds → src/ds}/components/Badge/index.d.ts +0 -0
- /package/dist/{ds → src/ds}/components/Breadcrumb/Breadcrumb.d.ts +0 -0
- /package/dist/{ds → src/ds}/components/Breadcrumb/index.d.ts +0 -0
- /package/dist/{ds → src/ds}/components/Button/index.d.ts +0 -0
- /package/dist/{ds → src/ds}/components/Header/index.d.ts +0 -0
- /package/dist/{ds → src/ds}/components/Logo/MastraLogo.d.ts +0 -0
- /package/dist/{ds → src/ds}/components/Logo/index.d.ts +0 -0
- /package/dist/{ds → src/ds}/components/Table/Cells.d.ts +0 -0
- /package/dist/{ds → src/ds}/components/Table/index.d.ts +0 -0
- /package/dist/{ds → src/ds}/components/Table/utils.d.ts +0 -0
- /package/dist/{ds → src/ds}/components/Txt/index.d.ts +0 -0
- /package/dist/{ds → src/ds}/components/types.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/AgentIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/AiIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/ApiIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/BranchIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/CheckIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/CommitIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/CrossIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/DbIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/DebugIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/DeploymentIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/DividerIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/DocsIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/EnvIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/FiltersIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/HomeIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/InfoIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/JudgeIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/LogsIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/MemoryIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/OpenAIIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/PromptIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/ScoreIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/SettingsIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/SlashIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/ToolsIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/TraceIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/TsIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/VariablesIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/icons/WorkflowIcon.d.ts +0 -0
- /package/dist/{ds → src/ds}/tokens/borders.d.ts +0 -0
- /package/dist/{ds → src/ds}/tokens/colors.d.ts +0 -0
- /package/dist/{ds → src/ds}/tokens/fonts.d.ts +0 -0
- /package/dist/{ds → src/ds}/tokens/index.d.ts +0 -0
- /package/dist/{ds → src/ds}/tokens/spacings.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-autoscroll.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-copy-to-clipboard.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/use-resize-column.d.ts +0 -0
- /package/dist/{lib → src/lib}/object.d.ts +0 -0
- /package/dist/{lib → src/lib}/pagination/types.d.ts +0 -0
- /package/dist/{lib → src/lib}/polls.d.ts +0 -0
- /package/dist/{lib → src/lib}/string.d.ts +0 -0
- /package/dist/{lib → src/lib}/utils.d.ts +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AttachmentAdapter, PendingAttachment, CompleteAttachment } from '@assistant-ui/react';
|
|
2
|
+
|
|
3
|
+
export declare class PDFAttachmentAdapter implements AttachmentAdapter {
|
|
4
|
+
accept: string;
|
|
5
|
+
add({ file }: {
|
|
6
|
+
file: File;
|
|
7
|
+
}): Promise<PendingAttachment>;
|
|
8
|
+
send(attachment: PendingAttachment): Promise<CompleteAttachment>;
|
|
9
|
+
remove(attachment: PendingAttachment): Promise<void>;
|
|
10
|
+
private fileToBase64;
|
|
11
|
+
private extractTextFromPDF;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ToolCallContentPartComponent } from '@assistant-ui/react';
|
|
2
|
+
|
|
3
|
+
export interface ThreadProps {
|
|
4
|
+
ToolFallback?: ToolCallContentPartComponent;
|
|
5
|
+
agentName?: string;
|
|
6
|
+
hasMemory?: boolean;
|
|
7
|
+
showFileSupport?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const Thread: ({ ToolFallback, agentName, hasMemory, showFileSupport }: ThreadProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export interface ThreadWelcomeProps {
|
|
11
|
+
agentName?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useHasAttachments: () => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const UserMessage: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,10 +2,12 @@ import { default as z } from 'zod';
|
|
|
2
2
|
|
|
3
3
|
interface DynamicFormProps<T extends z.ZodSchema> {
|
|
4
4
|
schema: T;
|
|
5
|
-
onSubmit
|
|
5
|
+
onSubmit?: (values: z.infer<T>) => void | Promise<void>;
|
|
6
6
|
defaultValues?: z.infer<T>;
|
|
7
7
|
isSubmitLoading?: boolean;
|
|
8
8
|
submitButtonLabel?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
readOnly?: boolean;
|
|
9
11
|
}
|
|
10
|
-
export declare function DynamicForm<T extends z.ZodSchema>({ schema, onSubmit, defaultValues, isSubmitLoading, submitButtonLabel, }: 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, }: DynamicFormProps<T>): import("react/jsx-runtime").JSX.Element | null;
|
|
11
13
|
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ElementType } from '../../node_modules/@types/react';
|
|
2
|
+
|
|
3
|
+
export interface ThreadsProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const Threads: ({ children }: ThreadsProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export interface ThreadLinkProps {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
as?: ElementType;
|
|
10
|
+
href?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
prefetch?: boolean;
|
|
13
|
+
to?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const ThreadLink: ({ children, as: Component, href, className, prefetch, to }: ThreadLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export interface ThreadListProps {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare const ThreadList: ({ children }: ThreadListProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export interface ThreadItemProps {
|
|
21
|
+
children: React.ReactNode;
|
|
22
|
+
isActive?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare const ThreadItem: ({ children, isActive }: ThreadItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export interface ThreadDeleteButtonProps {
|
|
26
|
+
onClick: () => void;
|
|
27
|
+
}
|
|
28
|
+
export declare const ThreadDeleteButton: ({ onClick }: ThreadDeleteButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from '../../../../node_modules/@types/react';
|
|
2
|
+
import { AutoFormProps } from './types';
|
|
3
|
+
|
|
4
|
+
export declare const ShadcnAutoFormFieldComponents: {
|
|
5
|
+
string: React.FC<import('@autoform/react').AutoFormFieldProps>;
|
|
6
|
+
number: React.FC<import('@autoform/react').AutoFormFieldProps>;
|
|
7
|
+
boolean: React.FC<import('@autoform/react').AutoFormFieldProps>;
|
|
8
|
+
date: React.FC<import('@autoform/react').AutoFormFieldProps>;
|
|
9
|
+
select: React.FC<import('@autoform/react').AutoFormFieldProps>;
|
|
10
|
+
record: React.FC<import('@autoform/react').AutoFormFieldProps>;
|
|
11
|
+
};
|
|
12
|
+
export type FieldTypes = keyof typeof ShadcnAutoFormFieldComponents;
|
|
13
|
+
export declare function AutoForm<T extends Record<string, any>>({ uiComponents, formComponents, readOnly, ...props }: AutoFormProps<T> & {
|
|
14
|
+
readOnly?: boolean;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare const buttonVariants: (props?: ({
|
|
5
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" |
|
|
5
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
6
6
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -20,7 +20,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
20
20
|
ref?: React.Ref<HTMLInputElement>;
|
|
21
21
|
} & {
|
|
22
22
|
asChild?: boolean;
|
|
23
|
-
}, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "
|
|
23
|
+
}, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "value" | "type" | "onChange"> & {
|
|
24
24
|
value?: string;
|
|
25
25
|
onValueChange?: (search: string) => void;
|
|
26
26
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -64,7 +64,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
64
64
|
ref?: React.Ref<HTMLDivElement>;
|
|
65
65
|
} & {
|
|
66
66
|
asChild?: boolean;
|
|
67
|
-
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "
|
|
67
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "disabled" | "onSelect"> & {
|
|
68
68
|
disabled?: boolean;
|
|
69
69
|
onSelect?: (value: string) => void;
|
|
70
70
|
value?: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare function MainContentLayout({ children, className, style, }: {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
className?: string;
|
|
4
|
+
style?: React.CSSProperties;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function MainContentContent({ children, className, isCentered, isDivided, hasLeftServiceColumn, style, }: {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
isCentered?: boolean;
|
|
11
|
+
isDivided?: boolean;
|
|
12
|
+
hasLeftServiceColumn?: boolean;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MainContent';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
type CopyButtonProps = {
|
|
2
2
|
content: string;
|
|
3
3
|
copyMessage?: string;
|
|
4
|
-
|
|
4
|
+
className?: string;
|
|
5
5
|
};
|
|
6
|
-
export declare function CopyButton({ content, copyMessage,
|
|
6
|
+
export declare function CopyButton({ content, copyMessage, className }: CopyButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -35,5 +35,6 @@ export interface DataTableProps<TData, TValue> {
|
|
|
35
35
|
* text to display when there are no results
|
|
36
36
|
*/
|
|
37
37
|
emptyText?: string;
|
|
38
|
+
onClick?: (row: TData) => void;
|
|
38
39
|
}
|
|
39
|
-
export declare const DataTable: <TData, TValue>({ columns, data, pagination, gotoNextPage, gotoPreviousPage, getRowId, selectedRowId, isLoading, emptyText, }: DataTableProps<TData, TValue>) => import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export declare const DataTable: <TData, TValue>({ columns, data, pagination, gotoNextPage, gotoPreviousPage, getRowId, selectedRowId, isLoading, emptyText, onClick, }: DataTableProps<TData, TValue>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ControllerProps, FieldPath, FieldValues } from 'react-hook-form';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
4
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues
|
|
4
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import('react-hook-form').FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
5
5
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare const useFormField: () => {
|
|
7
7
|
invalid: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
2
2
|
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare const ResizablePanel: import('../../../node_modules/@types/react').ForwardRefExoticComponent<Omit<import('../../../node_modules/@types/react').HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLDivElement | HTMLObjectElement | HTMLLinkElement | HTMLFormElement | HTMLSlotElement | HTMLStyleElement | HTMLTitleElement | HTMLDialogElement | HTMLImageElement | HTMLOptionElement | HTMLTableElement |
|
|
3
|
+
declare const ResizablePanel: import('../../../node_modules/@types/react').ForwardRefExoticComponent<Omit<import('../../../node_modules/@types/react').HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLDivElement | HTMLObjectElement | HTMLLinkElement | HTMLMapElement | HTMLFormElement | HTMLSlotElement | HTMLStyleElement | HTMLTitleElement | HTMLDialogElement | HTMLImageElement | HTMLOptionElement | HTMLTableElement | HTMLAnchorElement | HTMLHeadingElement | HTMLInputElement | HTMLLabelElement | HTMLLIElement | HTMLOListElement | HTMLParagraphElement | HTMLSelectElement | HTMLSpanElement | HTMLUListElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSourceElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
4
4
|
className?: string | undefined;
|
|
5
5
|
collapsedSize?: number | undefined;
|
|
6
6
|
collapsible?: boolean | undefined;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
3
|
+
declare const Slider: React.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
4
|
+
export { Slider };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from '../../node_modules/@types/react';
|
|
2
|
+
import { MastraClient } from '@mastra/client-js';
|
|
3
|
+
|
|
4
|
+
export declare const MastraClientProvider: ({ children, baseUrl, headers, }: {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
baseUrl?: string;
|
|
7
|
+
headers?: Record<string, string>;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const useMastraClient: () => MastraClient;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Evals } from '../../evals/types';
|
|
2
|
+
|
|
3
|
+
export interface AgentEvalsProps {
|
|
4
|
+
liveEvals: Array<Evals>;
|
|
5
|
+
ciEvals: Array<Evals>;
|
|
6
|
+
onRefetchLiveEvals: () => void;
|
|
7
|
+
onRefetchCiEvals: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function AgentEvals({ liveEvals, ciEvals, onRefetchLiveEvals, onRefetchCiEvals }: AgentEvalsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RefinedTrace } from '../../traces/types';
|
|
2
|
+
|
|
3
|
+
export interface AgentTracesProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
traces: RefinedTrace[];
|
|
6
|
+
error: {
|
|
7
|
+
message: string;
|
|
8
|
+
} | null;
|
|
9
|
+
}
|
|
10
|
+
export declare function AgentTraces({ className, traces, error }: AgentTracesProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from '../../../../../node_modules/@types/react';
|
|
2
|
+
import { ModelSettings } from '../../../../types';
|
|
3
|
+
import { GetAgentResponse } from '@mastra/client-js';
|
|
4
|
+
|
|
5
|
+
type AgentContextType = {
|
|
6
|
+
modelSettings: ModelSettings;
|
|
7
|
+
chatWithGenerate: boolean;
|
|
8
|
+
setModelSettings: (modelSettings: ModelSettings) => void;
|
|
9
|
+
resetModelSettings: () => void;
|
|
10
|
+
setChatWithGenerate: (chatWithGenerate: boolean) => void;
|
|
11
|
+
};
|
|
12
|
+
export declare const AgentContext: import('../../../../../node_modules/@types/react').Context<AgentContextType>;
|
|
13
|
+
export declare function AgentProvider({ agentId, defaultGenerateOptions, defaultStreamOptions, children, }: {
|
|
14
|
+
agentId: string;
|
|
15
|
+
defaultGenerateOptions?: GetAgentResponse['defaultGenerateOptions'];
|
|
16
|
+
defaultStreamOptions?: GetAgentResponse['defaultStreamOptions'];
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -12,8 +12,13 @@ export type Evals = {
|
|
|
12
12
|
globalRunId: string;
|
|
13
13
|
testInfo?: TestInfo;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type GroupedEvals = {
|
|
16
|
+
metricName: string;
|
|
17
|
+
averageScore: number;
|
|
16
18
|
evals: Evals[];
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
};
|
|
20
|
+
export type SortDirection = 'asc' | 'desc';
|
|
21
|
+
export type SortConfig = {
|
|
22
|
+
field: keyof GroupedEvals | 'timestamp' | 'score';
|
|
23
|
+
direction: SortDirection;
|
|
19
24
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from '../../../node_modules/@types/react';
|
|
2
|
+
import { ModelSettings } from '../../types';
|
|
3
|
+
|
|
4
|
+
type NetworkContextType = {
|
|
5
|
+
modelSettings: ModelSettings;
|
|
6
|
+
setModelSettings: React.Dispatch<React.SetStateAction<ModelSettings>>;
|
|
7
|
+
resetModelSettings: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const NetworkContext: import('../../../node_modules/@types/react').Context<NetworkContextType>;
|
|
10
|
+
export declare function NetworkProvider({ children }: {
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
import { Span, RefinedTrace } from '../types';
|
|
2
2
|
|
|
3
|
-
type TraceContextType = {
|
|
3
|
+
export type TraceContextType = {
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
6
6
|
trace: Span[] | null;
|
|
7
7
|
setTrace: React.Dispatch<React.SetStateAction<Span[] | null>>;
|
|
8
8
|
traces: RefinedTrace[];
|
|
9
|
-
setTraces: React.Dispatch<React.SetStateAction<RefinedTrace[]>>;
|
|
10
9
|
currentTraceIndex: number;
|
|
11
10
|
setCurrentTraceIndex: React.Dispatch<React.SetStateAction<number>>;
|
|
12
11
|
nextTrace: () => void;
|
|
13
12
|
prevTrace: () => void;
|
|
14
13
|
span: Span | null;
|
|
15
14
|
setSpan: React.Dispatch<React.SetStateAction<Span | null>>;
|
|
16
|
-
openDetail: boolean;
|
|
17
|
-
setOpenDetail: React.Dispatch<React.SetStateAction<boolean>>;
|
|
18
15
|
clearData: () => void;
|
|
19
16
|
};
|
|
20
17
|
export declare const TraceContext: import('../../../../node_modules/@types/react').Context<TraceContextType>;
|
|
21
|
-
export declare function TraceProvider({ children }: {
|
|
18
|
+
export declare function TraceProvider({ children, initialTraces: traces, }: {
|
|
22
19
|
children: React.ReactNode;
|
|
20
|
+
initialTraces?: RefinedTrace[];
|
|
23
21
|
}): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function TraceDetails(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function TraceDetails(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function SpanDetail(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function SpanDetail(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RefinedTrace } from './types';
|
|
2
|
+
|
|
3
|
+
export interface TracesTableProps {
|
|
4
|
+
traces: RefinedTrace[];
|
|
5
|
+
error: {
|
|
6
|
+
message: string;
|
|
7
|
+
} | null;
|
|
8
|
+
}
|
|
9
|
+
export declare const TracesTable: ({ traces, error }: TracesTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -35,10 +35,6 @@ export type Span = {
|
|
|
35
35
|
other: SpanOther;
|
|
36
36
|
createdAt: string;
|
|
37
37
|
};
|
|
38
|
-
export type SpanNode = Span & {
|
|
39
|
-
children: SpanNode[];
|
|
40
|
-
relativePercentage?: number;
|
|
41
|
-
};
|
|
42
38
|
export type RefinedTrace = {
|
|
43
39
|
traceId: string;
|
|
44
40
|
serviceName: string;
|
|
@@ -46,4 +42,14 @@ export type RefinedTrace = {
|
|
|
46
42
|
started: number;
|
|
47
43
|
status: SpanStatus;
|
|
48
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;
|
|
49
55
|
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { RefinedTrace, Span } from './types';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
*
|
|
5
3
|
* @param duration duration of the span
|
|
@@ -9,7 +7,6 @@ import { RefinedTrace, Span } from './types';
|
|
|
9
7
|
export declare function formatDuration(duration: number, fixedPoint?: number): string;
|
|
10
8
|
export declare function formatOtelTimestamp(otelTimestamp: number): string;
|
|
11
9
|
export declare function formatOtelTimestamp2(otelTimestamp: number): string;
|
|
12
|
-
export declare function transformKey(key: string): string
|
|
10
|
+
export declare function transformKey(key: string): string;
|
|
13
11
|
export declare function cleanString(string: string): string;
|
|
14
|
-
export declare const refineTraces: (traces: Span[], isWorkflow?: boolean) => RefinedTrace[];
|
|
15
12
|
export declare const allowedAiSpanAttributes: string[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type LegacyWorkflowNestedGraphContextType = {
|
|
2
|
+
showNestedGraph: ({ label, stepGraph, stepSubscriberGraph, }: {
|
|
3
|
+
label: string;
|
|
4
|
+
stepGraph: any;
|
|
5
|
+
stepSubscriberGraph: any;
|
|
6
|
+
}) => void;
|
|
7
|
+
closeNestedGraph: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const LegacyWorkflowNestedGraphContext: import('../../../../node_modules/@types/react').Context<LegacyWorkflowNestedGraphContextType>;
|
|
10
|
+
export declare function LegacyWorkflowNestedGraphProvider({ children }: {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type Step = {
|
|
2
|
+
error?: any;
|
|
3
|
+
startedAt: number;
|
|
4
|
+
endedAt?: number;
|
|
5
|
+
status: 'running' | 'success' | 'failed' | 'suspended';
|
|
6
|
+
output?: any;
|
|
7
|
+
input?: any;
|
|
8
|
+
};
|
|
9
|
+
type UseCurrentRunReturnType = {
|
|
10
|
+
steps: Record<string, Step>;
|
|
11
|
+
isRunning: boolean;
|
|
12
|
+
runId?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const useCurrentRun: () => UseCurrentRunReturnType;
|
|
15
|
+
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { SerializedStepFlowEntry } from '@mastra/core/workflows';
|
|
2
|
+
|
|
1
3
|
type WorkflowNestedGraphContextType = {
|
|
2
|
-
showNestedGraph: ({ label, stepGraph,
|
|
4
|
+
showNestedGraph: ({ label, stepGraph, fullStep, }: {
|
|
3
5
|
label: string;
|
|
4
|
-
stepGraph:
|
|
5
|
-
|
|
6
|
+
stepGraph: SerializedStepFlowEntry[];
|
|
7
|
+
fullStep: string;
|
|
6
8
|
}) => void;
|
|
7
9
|
closeNestedGraph: () => void;
|
|
8
10
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ExtendedLegacyWorkflowRunResult, ExtendedWorkflowWatchResult } from '../../../hooks/use-workflows';
|
|
2
|
+
import { WorkflowRunState } from '@mastra/core';
|
|
3
|
+
|
|
4
|
+
type WorkflowRunContextType = {
|
|
5
|
+
legacyResult: ExtendedLegacyWorkflowRunResult | null;
|
|
6
|
+
setLegacyResult: React.Dispatch<React.SetStateAction<any>>;
|
|
7
|
+
result: ExtendedWorkflowWatchResult | null;
|
|
8
|
+
setResult: React.Dispatch<React.SetStateAction<any>>;
|
|
9
|
+
payload: any;
|
|
10
|
+
setPayload: React.Dispatch<React.SetStateAction<any>>;
|
|
11
|
+
clearData: () => void;
|
|
12
|
+
snapshot?: WorkflowRunState;
|
|
13
|
+
};
|
|
14
|
+
export declare const WorkflowRunContext: import('../../../../node_modules/@types/react').Context<WorkflowRunContextType>;
|
|
15
|
+
export declare function WorkflowRunProvider({ children, snapshot, }: {
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
snapshot?: WorkflowRunState;
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './workflow/workflow-traces';
|
|
2
|
+
export * from './workflow/legacy-workflow-graph';
|
|
3
|
+
export * from './workflow/legacy-workflow-trigger';
|
|
4
|
+
export * from './context/workflow-run-context';
|
|
5
|
+
export * from './workflow/workflow-graph';
|
|
6
|
+
export * from './workflow/workflow-trigger';
|
|
7
|
+
export * from './context/use-current-run';
|
|
8
|
+
export * from './runs/workflow-runs';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WorkflowRun } from '@mastra/core';
|
|
2
|
+
|
|
3
|
+
export interface WorkflowRunsProps {
|
|
4
|
+
workflowId: string;
|
|
5
|
+
runId?: string;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
runs: WorkflowRun[];
|
|
8
|
+
onPressRun: ({ workflowId, runId }: {
|
|
9
|
+
workflowId: string;
|
|
10
|
+
runId: string;
|
|
11
|
+
}) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const WorkflowRuns: ({ workflowId, runId, isLoading, runs, onPressRun }: WorkflowRunsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NodeProps, Node } from '@xyflow/react';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
type LegacyWorkflowNestedNode = Node<{
|
|
4
4
|
label: string;
|
|
5
5
|
description?: string;
|
|
6
6
|
withoutTopHandle?: boolean;
|
|
@@ -8,4 +8,5 @@ export type NestedNode = Node<{
|
|
|
8
8
|
stepGraph: any;
|
|
9
9
|
stepSubscriberGraph: any;
|
|
10
10
|
}, 'nested-node'>;
|
|
11
|
-
export declare function
|
|
11
|
+
export declare function LegacyWorkflowNestedNode({ data }: NodeProps<LegacyWorkflowNestedNode>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export declare function
|
|
1
|
+
export declare function LegacyWorkflowTrigger({ workflowId, setRunId, }: {
|
|
2
2
|
workflowId: string;
|
|
3
|
-
baseUrl: string;
|
|
4
3
|
setRunId?: (runId: string) => void;
|
|
5
4
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Workflow } from '@mastra/core/workflows';
|
|
2
|
+
import { StepCondition } from '@mastra/core/workflows/legacy';
|
|
2
3
|
import { Node, Edge } from '@xyflow/react';
|
|
3
4
|
|
|
4
|
-
export type ConditionConditionType = 'if' | 'else' | 'when' | 'until' | 'while';
|
|
5
|
+
export type ConditionConditionType = 'if' | 'else' | 'when' | 'until' | 'while' | 'dountil' | 'dowhile';
|
|
5
6
|
export type Condition = {
|
|
6
7
|
type: ConditionConditionType;
|
|
7
8
|
ref: {
|
|
@@ -31,7 +32,7 @@ export type WStep = {
|
|
|
31
32
|
stepSubscriberGraph?: any;
|
|
32
33
|
};
|
|
33
34
|
};
|
|
34
|
-
export declare const
|
|
35
|
+
export declare const contructLegacyNodesAndEdges: ({ stepGraph, stepSubscriberGraph, steps: mainSteps, }: {
|
|
35
36
|
stepGraph: any;
|
|
36
37
|
stepSubscriberGraph: any;
|
|
37
38
|
steps?: WStep;
|
|
@@ -39,3 +40,9 @@ export declare const contructNodesAndEdges: ({ stepGraph, stepSubscriberGraph, s
|
|
|
39
40
|
nodes: Node[];
|
|
40
41
|
edges: Edge[];
|
|
41
42
|
};
|
|
43
|
+
export declare const constructNodesAndEdges: ({ stepGraph, }: {
|
|
44
|
+
stepGraph: Workflow["serializedStepGraph"];
|
|
45
|
+
}) => {
|
|
46
|
+
nodes: Node[];
|
|
47
|
+
edges: Edge[];
|
|
48
|
+
};
|