@mastra/playground-ui 0.0.0-vnextWorkflows-20250422081019 → 0.0.0-workflow-deno-20250616115451
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
|
@@ -3,5 +3,8 @@ import { Condition } from './utils';
|
|
|
3
3
|
|
|
4
4
|
export type ConditionNode = Node<{
|
|
5
5
|
conditions: Condition[];
|
|
6
|
+
previousStepId: string;
|
|
7
|
+
nextStepId: string;
|
|
8
|
+
mapConfig?: string;
|
|
6
9
|
}, 'condition-node'>;
|
|
7
10
|
export declare function WorkflowConditionNode({ data }: NodeProps<ConditionNode>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { NodeProps, Node } from '@xyflow/react';
|
|
2
|
+
|
|
3
|
+
export type DefaultNode = Node<{
|
|
4
|
+
label: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
withoutTopHandle?: boolean;
|
|
7
|
+
withoutBottomHandle?: boolean;
|
|
8
|
+
mapConfig?: string;
|
|
9
|
+
}, 'default-node'>;
|
|
10
|
+
export interface WorkflowDefaultNodeProps {
|
|
11
|
+
data: DefaultNode['data'];
|
|
12
|
+
onShowTrace?: ({ runId, stepName }: {
|
|
13
|
+
runId: string;
|
|
14
|
+
stepName: string;
|
|
15
|
+
}) => void;
|
|
16
|
+
parentWorkflowName?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function WorkflowDefaultNode({ data, onShowTrace, parentWorkflowName, }: NodeProps<DefaultNode> & WorkflowDefaultNodeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GetWorkflowResponse } from '@mastra/client-js';
|
|
2
|
+
|
|
3
|
+
export interface WorkflowGraphInnerProps {
|
|
4
|
+
workflow: {
|
|
5
|
+
stepGraph: GetWorkflowResponse['stepGraph'];
|
|
6
|
+
};
|
|
7
|
+
onShowTrace: ({ runId, stepName }: {
|
|
8
|
+
runId: string;
|
|
9
|
+
stepName: string;
|
|
10
|
+
}) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function WorkflowGraphInner({ workflow, onShowTrace }: WorkflowGraphInnerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GetWorkflowResponse } from '@mastra/client-js';
|
|
2
|
+
|
|
3
|
+
export interface WorkflowGraphProps {
|
|
4
|
+
workflowId: string;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
workflow?: GetWorkflowResponse;
|
|
7
|
+
onShowTrace: ({ runId, stepName }: {
|
|
8
|
+
runId: string;
|
|
9
|
+
stepName: string;
|
|
10
|
+
}) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function WorkflowGraph({ workflowId, onShowTrace, workflow, isLoading }: WorkflowGraphProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SerializedStepFlowEntry } from '@mastra/core/workflows';
|
|
2
|
+
|
|
3
|
+
export interface WorkflowNestedGraphProps {
|
|
4
|
+
stepGraph: SerializedStepFlowEntry[];
|
|
5
|
+
open: boolean;
|
|
6
|
+
workflowName: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function WorkflowNestedGraph({ stepGraph, open, workflowName }: WorkflowNestedGraphProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NodeProps, Node } from '@xyflow/react';
|
|
2
|
+
import { StepFlowEntry } from '@mastra/core/workflows';
|
|
3
|
+
|
|
4
|
+
export type NestedNode = Node<{
|
|
5
|
+
label: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
withoutTopHandle?: boolean;
|
|
8
|
+
withoutBottomHandle?: boolean;
|
|
9
|
+
stepGraph: StepFlowEntry[];
|
|
10
|
+
mapConfig?: string;
|
|
11
|
+
}, 'nested-node'>;
|
|
12
|
+
export declare function WorkflowNestedNode({ data, parentWorkflowName, }: NodeProps<NestedNode> & {
|
|
13
|
+
parentWorkflowName?: string;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface WorkflowStepActionBarProps {
|
|
2
|
+
input?: any;
|
|
3
|
+
output?: any;
|
|
4
|
+
error?: any;
|
|
5
|
+
stepName: string;
|
|
6
|
+
mapConfig?: string;
|
|
7
|
+
onShowTrace?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const WorkflowStepActionBar: ({ input, output, error, mapConfig, stepName, onShowTrace, }: WorkflowStepActionBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RefinedTrace } from '../../traces/types';
|
|
2
|
+
|
|
3
|
+
export interface WorkflowTracesProps {
|
|
4
|
+
traces: RefinedTrace[];
|
|
5
|
+
error: {
|
|
6
|
+
message: string;
|
|
7
|
+
} | null;
|
|
8
|
+
runId?: string;
|
|
9
|
+
stepName?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function WorkflowTraces({ traces, error, runId, stepName }: WorkflowTracesProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GetWorkflowResponse } from '@mastra/client-js';
|
|
2
|
+
|
|
3
|
+
export declare function WorkflowTrigger({ workflowId, setRunId, workflow, isLoading, }: {
|
|
4
|
+
workflowId: string;
|
|
5
|
+
setRunId?: (runId: string) => void;
|
|
6
|
+
workflow?: GetWorkflowResponse;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Avatar';
|
|
@@ -7,5 +7,7 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
7
7
|
to?: string;
|
|
8
8
|
prefetch?: boolean | null;
|
|
9
9
|
children: React.ReactNode;
|
|
10
|
+
size?: 'md' | 'lg';
|
|
11
|
+
variant?: 'default' | 'light';
|
|
10
12
|
}
|
|
11
|
-
export declare const Button: ({ className, as, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const Button: ({ className, as, size, variant, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ElementType, ReactNode } from '../../../../node_modules/@types/react';
|
|
2
|
+
|
|
3
|
+
export interface EmptyStateProps {
|
|
4
|
+
as?: ElementType;
|
|
5
|
+
iconSlot: ReactNode;
|
|
6
|
+
titleSlot: ReactNode;
|
|
7
|
+
descriptionSlot: ReactNode;
|
|
8
|
+
actionSlot: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare const EmptyState: ({ iconSlot, titleSlot, descriptionSlot, actionSlot, as: Component, }: EmptyStateProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './EmptyState';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface EntityProps {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
className?: string;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const Entity: ({ children, className, onClick }: EntityProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const EntityIcon: ({ children, className }: EntityProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const EntityName: ({ children, className }: EntityProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const EntityDescription: ({ children, className }: EntityProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const EntityContent: ({ children, className }: EntityProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Entity';
|
|
@@ -2,8 +2,9 @@ import { default as React } from '../../../../node_modules/@types/react';
|
|
|
2
2
|
|
|
3
3
|
export interface HeaderProps {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
|
+
border?: boolean;
|
|
5
6
|
}
|
|
6
|
-
export declare const Header: ({ children }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const Header: ({ children, border }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export declare const HeaderTitle: ({ children }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export declare const HeaderAction: ({ children }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export declare const HeaderGroup: ({ children }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -25,5 +25,6 @@ export interface RowProps {
|
|
|
25
25
|
className?: string;
|
|
26
26
|
children: React.ReactNode;
|
|
27
27
|
selected?: boolean;
|
|
28
|
+
onClick?: () => void;
|
|
28
29
|
}
|
|
29
|
-
export declare const Row: ({ className, children, selected }: RowProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export declare const Row: ({ className, children, selected, onClick }: RowProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { default as React } from '../../../../node_modules/@types/react';
|
|
2
|
+
|
|
3
|
+
export interface SpanProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
durationMs: number;
|
|
6
|
+
variant: 'tool' | 'agent' | 'workflow' | 'memory' | 'rag' | 'storage' | 'eval' | 'other';
|
|
7
|
+
tokenCount?: number;
|
|
8
|
+
spans?: React.ReactNode;
|
|
9
|
+
isRoot?: boolean;
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
isActive?: boolean;
|
|
12
|
+
offsetMs: number;
|
|
13
|
+
totalDurationMs: number;
|
|
14
|
+
}
|
|
15
|
+
export declare const spanIconMap: {
|
|
16
|
+
tool: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
agent: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
workflow: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
memory: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
rag: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
storage: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
eval: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
other: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
};
|
|
25
|
+
export declare const spanVariantClasses: {
|
|
26
|
+
tool: string;
|
|
27
|
+
agent: string;
|
|
28
|
+
workflow: string;
|
|
29
|
+
memory: string;
|
|
30
|
+
rag: string;
|
|
31
|
+
storage: string;
|
|
32
|
+
eval: string;
|
|
33
|
+
other: string;
|
|
34
|
+
};
|
|
35
|
+
export declare const Span: ({ children, durationMs, variant, tokenCount, spans, isRoot, onClick, isActive, offsetMs, totalDurationMs, }: SpanProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface TimeProps {
|
|
2
|
+
durationMs: number;
|
|
3
|
+
tokenCount?: number;
|
|
4
|
+
variant?: 'agent';
|
|
5
|
+
progressPercent: number;
|
|
6
|
+
offsetPercent: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const Time: ({ durationMs, tokenCount, variant, progressPercent, offsetPercent }: TimeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from '../../../../node_modules/@types/react';
|
|
2
|
+
import { SpanProps } from './Span';
|
|
3
|
+
|
|
4
|
+
export interface TraceProps {
|
|
5
|
+
name: string;
|
|
6
|
+
spans: React.ReactNode;
|
|
7
|
+
durationMs: number;
|
|
8
|
+
tokenCount?: number;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
variant: SpanProps['variant'];
|
|
11
|
+
isActive?: boolean;
|
|
12
|
+
totalDurationMs: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const Trace: ({ name, spans, durationMs, tokenCount, onClick, variant, isActive, totalDurationMs, }: TraceProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TraceTree';
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { default as React } from '../../../../node_modules/@types/react';
|
|
2
2
|
import { FontSizes } from '../../tokens';
|
|
3
3
|
|
|
4
|
-
export interface TxtProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
|
|
4
|
+
export interface TxtProps extends React.HTMLAttributes<HTMLDivElement | HTMLLabelElement> {
|
|
5
|
+
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'label';
|
|
6
6
|
variant?: keyof typeof FontSizes;
|
|
7
7
|
font?: 'mono';
|
|
8
|
+
htmlFor?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
children?: React.ReactNode;
|
|
8
11
|
}
|
|
9
12
|
export declare const Txt: ({ as: Root, className, variant, font, ...props }: TxtProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AgentNetworkCoinIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,6 +2,6 @@ import { default as React } from '../../../node_modules/@types/react';
|
|
|
2
2
|
|
|
3
3
|
export interface IconProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
-
size?: 'default' | 'lg';
|
|
5
|
+
size?: 'default' | 'lg' | 'sm';
|
|
6
6
|
}
|
|
7
7
|
export declare const Icon: ({ children, className, size, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export * from './AgentIcon';
|
|
2
|
+
export * from './AgentCoinIcon';
|
|
2
3
|
export * from './AiIcon';
|
|
3
4
|
export * from './ApiIcon';
|
|
4
5
|
export * from './BranchIcon';
|
|
5
6
|
export * from './CheckIcon';
|
|
7
|
+
export * from './ChevronIcon';
|
|
6
8
|
export * from './CommitIcon';
|
|
7
9
|
export * from './CrossIcon';
|
|
8
10
|
export * from './DbIcon';
|
|
@@ -11,7 +13,12 @@ export * from './DeploymentIcon';
|
|
|
11
13
|
export * from './DividerIcon';
|
|
12
14
|
export * from './DocsIcon';
|
|
13
15
|
export * from './EnvIcon';
|
|
16
|
+
export * from './EvaluatorCoinIcon';
|
|
14
17
|
export * from './FiltersIcon';
|
|
18
|
+
export * from './GithubCoinIcon';
|
|
19
|
+
export * from './GithubIcon';
|
|
20
|
+
export * from './GoogleIcon';
|
|
21
|
+
export * from './RepoIcon';
|
|
15
22
|
export * from './HomeIcon';
|
|
16
23
|
export * from './Icon';
|
|
17
24
|
export * from './InfoIcon';
|
|
@@ -28,3 +35,10 @@ export * from './TraceIcon';
|
|
|
28
35
|
export * from './TsIcon';
|
|
29
36
|
export * from './VariablesIcon';
|
|
30
37
|
export * from './WorkflowIcon';
|
|
38
|
+
export * from './WorkflowCoinIcon';
|
|
39
|
+
export * from './LatencyIcon';
|
|
40
|
+
export * from './McpServerIcon';
|
|
41
|
+
export * from './FolderIcon';
|
|
42
|
+
export * from './McpCoinIcon';
|
|
43
|
+
export * from './ToolCoinIcon';
|
|
44
|
+
export * from './AgentNetworkCoinIcon';
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
export declare const Sizes: {
|
|
2
2
|
'icon-default': string;
|
|
3
3
|
'icon-lg': string;
|
|
4
|
-
'
|
|
4
|
+
'icon-sm': string;
|
|
5
|
+
'button-md': string;
|
|
6
|
+
'button-lg': string;
|
|
5
7
|
'header-default': string;
|
|
6
8
|
'table-header': string;
|
|
7
9
|
'table-row': string;
|
|
8
10
|
'table-row-small': string;
|
|
9
11
|
'badge-default': string;
|
|
12
|
+
'avatar-default': string;
|
|
10
13
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface SpeechRecognitionState {
|
|
2
|
+
isListening: boolean;
|
|
3
|
+
transcript: string;
|
|
4
|
+
error: string | null;
|
|
5
|
+
}
|
|
6
|
+
export interface UseSpeechRecognitionArgs {
|
|
7
|
+
language?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const useSpeechRecognition: ({ language }?: UseSpeechRecognitionArgs) => {
|
|
10
|
+
start: () => void;
|
|
11
|
+
stop: () => void;
|
|
12
|
+
isListening: boolean;
|
|
13
|
+
transcript: string;
|
|
14
|
+
error: string | null;
|
|
15
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { LegacyWorkflowRunResult, WorkflowWatchResult } from '@mastra/client-js';
|
|
2
|
+
import { LegacyWorkflow } from '@mastra/core/workflows/legacy';
|
|
3
|
+
|
|
4
|
+
export type ExtendedLegacyWorkflowRunResult = LegacyWorkflowRunResult & {
|
|
5
|
+
sanitizedOutput?: string | null;
|
|
6
|
+
sanitizedError?: {
|
|
7
|
+
message: string;
|
|
8
|
+
stack?: string;
|
|
9
|
+
} | null;
|
|
10
|
+
};
|
|
11
|
+
export type ExtendedWorkflowWatchResult = WorkflowWatchResult & {
|
|
12
|
+
sanitizedOutput?: string | null;
|
|
13
|
+
sanitizedError?: {
|
|
14
|
+
message: string;
|
|
15
|
+
stack?: string;
|
|
16
|
+
} | null;
|
|
17
|
+
};
|
|
18
|
+
export declare const useLegacyWorkflow: (workflowId: string) => {
|
|
19
|
+
legacyWorkflow: LegacyWorkflow<import('@mastra/core/workflows/legacy').LegacyStep<string, any, any, import('@mastra/core/workflows/legacy').StepExecutionContext<any, import('@mastra/core/workflows/legacy').WorkflowContext<any, import('@mastra/core/workflows/legacy').LegacyStep<string, any, any, any>[], Record<string, any>>>>[], string, any, any> | null;
|
|
20
|
+
isLoading: boolean;
|
|
21
|
+
};
|
|
22
|
+
export declare const useExecuteWorkflow: () => {
|
|
23
|
+
startWorkflowRun: ({ workflowId, runId, input, runtimeContext: playgroundRuntimeContext, }: {
|
|
24
|
+
workflowId: string;
|
|
25
|
+
runId: string;
|
|
26
|
+
input: any;
|
|
27
|
+
runtimeContext: Record<string, any>;
|
|
28
|
+
}) => Promise<void>;
|
|
29
|
+
createWorkflowRun: ({ workflowId, prevRunId }: {
|
|
30
|
+
workflowId: string;
|
|
31
|
+
prevRunId?: string;
|
|
32
|
+
}) => Promise<{
|
|
33
|
+
runId: string;
|
|
34
|
+
}>;
|
|
35
|
+
startLegacyWorkflowRun: ({ workflowId, runId, input, }: {
|
|
36
|
+
workflowId: string;
|
|
37
|
+
runId: string;
|
|
38
|
+
input: any;
|
|
39
|
+
}) => Promise<void>;
|
|
40
|
+
createLegacyWorkflowRun: ({ workflowId, prevRunId }: {
|
|
41
|
+
workflowId: string;
|
|
42
|
+
prevRunId?: string;
|
|
43
|
+
}) => Promise<{
|
|
44
|
+
runId: string;
|
|
45
|
+
}>;
|
|
46
|
+
startAsyncWorkflowRun: ({ workflowId, runId, input, runtimeContext: playgroundRuntimeContext, }: {
|
|
47
|
+
workflowId: string;
|
|
48
|
+
runId?: string;
|
|
49
|
+
input: any;
|
|
50
|
+
runtimeContext: Record<string, any>;
|
|
51
|
+
}) => Promise<import('@mastra/client-js').WorkflowRunResult>;
|
|
52
|
+
};
|
|
53
|
+
export declare const useWatchWorkflow: () => {
|
|
54
|
+
watchLegacyWorkflow: ({ workflowId, runId }: {
|
|
55
|
+
workflowId: string;
|
|
56
|
+
runId: string;
|
|
57
|
+
}) => Promise<void>;
|
|
58
|
+
isWatchingLegacyWorkflow: boolean;
|
|
59
|
+
legacyWatchResult: ExtendedLegacyWorkflowRunResult | null;
|
|
60
|
+
watchWorkflow: ({ workflowId, runId }: {
|
|
61
|
+
workflowId: string;
|
|
62
|
+
runId: string;
|
|
63
|
+
}) => Promise<void>;
|
|
64
|
+
isWatchingWorkflow: boolean;
|
|
65
|
+
watchResult: ExtendedWorkflowWatchResult | null;
|
|
66
|
+
};
|
|
67
|
+
export declare const useResumeWorkflow: () => {
|
|
68
|
+
resumeLegacyWorkflow: ({ workflowId, stepId, runId, context, }: {
|
|
69
|
+
workflowId: string;
|
|
70
|
+
stepId: string;
|
|
71
|
+
runId: string;
|
|
72
|
+
context: any;
|
|
73
|
+
}) => Promise<{
|
|
74
|
+
message: string;
|
|
75
|
+
}>;
|
|
76
|
+
isResumingLegacyWorkflow: boolean;
|
|
77
|
+
resumeWorkflow: ({ workflowId, step, runId, resumeData, runtimeContext: playgroundRuntimeContext, }: {
|
|
78
|
+
workflowId: string;
|
|
79
|
+
step: string | string[];
|
|
80
|
+
runId: string;
|
|
81
|
+
resumeData: any;
|
|
82
|
+
runtimeContext: Record<string, any>;
|
|
83
|
+
}) => Promise<{
|
|
84
|
+
message: string;
|
|
85
|
+
}>;
|
|
86
|
+
isResumingWorkflow: boolean;
|
|
87
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
export * from './contexts/mastra-client-context';
|
|
3
|
+
export * from './domains/agents/index';
|
|
4
|
+
export * from './domains/networks/index';
|
|
5
|
+
export * from './domains/workflows/index';
|
|
6
|
+
export * from './domains/resizable-panel';
|
|
7
|
+
export * from './components/dynamic-form/index';
|
|
8
|
+
export * from './components/ui/data-table';
|
|
9
|
+
export * from './components/ui/containers';
|
|
10
|
+
export * from './components/threads';
|
|
11
|
+
export * from './types';
|
|
12
|
+
export * from './ds/components/Badge/index';
|
|
13
|
+
export * from './ds/components/Button/index';
|
|
14
|
+
export * from './ds/components/Breadcrumb/index';
|
|
15
|
+
export * from './ds/components/Header/index';
|
|
16
|
+
export * from './ds/components/Logo/index';
|
|
17
|
+
export * from './ds/components/Table/index';
|
|
18
|
+
export * from './ds/components/Txt/index';
|
|
19
|
+
export * from './ds/components/Entity/index';
|
|
20
|
+
export * from './ds/components/EmptyState/index';
|
|
21
|
+
export * from './ds/icons/index';
|
|
22
|
+
export * from './lib/polls';
|
|
23
|
+
export * from './hooks/use-speech-recognition';
|
|
24
|
+
export type { TraceContextType } from './domains/traces/context/trace-context';
|
|
25
|
+
export * from './store/playground-store';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const fileToBase64: (file: File) => Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const toSigFigs: (num: number, sigFigs: number) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from '../../node_modules/@types/react';
|
|
2
2
|
import { ChatProps } from '../types';
|
|
3
3
|
|
|
4
|
-
export declare function MastraRuntimeProvider({ children, agentId, initialMessages, agentName, memory, threadId,
|
|
4
|
+
export declare function MastraRuntimeProvider({ children, agentId, initialMessages, agentName, memory, threadId, refreshThreadList, modelSettings, chatWithGenerate, runtimeContext, }: Readonly<{
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
}> & ChatProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from '../../node_modules/@types/react';
|
|
2
2
|
import { ChatProps } from '../types';
|
|
3
3
|
|
|
4
|
-
export declare function MastraNetworkRuntimeProvider({ children, agentId, initialMessages, memory, threadId,
|
|
4
|
+
export declare function MastraNetworkRuntimeProvider({ children, agentId, initialMessages, memory, threadId, refreshThreadList, modelSettings, }: Readonly<{
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
}> & ChatProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ModelSettings } from '../types';
|
|
2
|
+
|
|
3
|
+
interface AgentStore {
|
|
4
|
+
modelSettings: Record<string, ModelSettings | null>;
|
|
5
|
+
setModelSettings: (modelSettings: Record<string, ModelSettings | null>) => void;
|
|
6
|
+
chatWithGenerate: Record<string, boolean>;
|
|
7
|
+
setChatWithGenerate: (chatWithGenerate: Record<string, boolean>) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const useAgentStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<AgentStore>, "persist"> & {
|
|
10
|
+
persist: {
|
|
11
|
+
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<AgentStore, AgentStore>>) => void;
|
|
12
|
+
clearStorage: () => void;
|
|
13
|
+
rehydrate: () => Promise<void> | void;
|
|
14
|
+
hasHydrated: () => boolean;
|
|
15
|
+
onHydrate: (fn: (state: AgentStore) => void) => () => void;
|
|
16
|
+
onFinishHydration: (fn: (state: AgentStore) => void) => () => void;
|
|
17
|
+
getOptions: () => Partial<import('zustand/middleware').PersistOptions<AgentStore, AgentStore>>;
|
|
18
|
+
};
|
|
19
|
+
}>;
|
|
20
|
+
export {};
|