@mastra/playground-ui 0.0.0-working-memory-per-user-20250620163010 → 0.0.0-zod-v4-compat-part-2-20250820135355
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/LICENSE.md +11 -42
- package/dist/{colors-Du4i-E0i.cjs → colors-DLwJ7rFA.cjs} +14 -2
- package/dist/colors-DLwJ7rFA.cjs.map +1 -0
- package/dist/{colors-CBG_Mm7P.js → colors-DrbbnW3f.js} +14 -2
- package/dist/colors-DrbbnW3f.js.map +1 -0
- package/dist/index.cjs.js +6945 -2825
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +6865 -2812
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/assistant-ui/attachments/attachment-preview-dialog.d.ts +31 -0
- package/dist/src/components/assistant-ui/attachments/attachment.d.ts +2 -0
- package/dist/src/components/assistant-ui/{attachment-adapters → attachments}/pdfs-adapter.d.ts +0 -1
- package/dist/src/components/assistant-ui/attachments/voice-adapter.d.ts +7 -0
- package/dist/src/components/assistant-ui/hooks/use-adapters.d.ts +8 -0
- package/dist/src/components/assistant-ui/hooks/use-attachment-src.d.ts +1 -0
- package/dist/src/components/assistant-ui/hooks/use-file-src.d.ts +1 -0
- package/dist/src/components/assistant-ui/hooks/use-load-browser-file.d.ts +4 -0
- package/dist/src/components/assistant-ui/memory-search.d.ts +10 -0
- package/dist/src/components/assistant-ui/messages/assistant-message.d.ts +5 -0
- package/dist/src/components/assistant-ui/messages/markdown-text.d.ts +1 -0
- package/dist/src/components/assistant-ui/messages/reasoning.d.ts +2 -0
- package/dist/src/components/assistant-ui/messages/user-messages.d.ts +9 -0
- package/dist/src/components/assistant-ui/network-threads.d.ts +10 -0
- package/dist/src/components/assistant-ui/thread-list.d.ts +0 -1
- package/dist/src/components/assistant-ui/thread.d.ts +3 -3
- package/dist/src/components/assistant-ui/{tool-fallback.d.ts → tools/tool-fallback.d.ts} +0 -1
- package/dist/src/components/assistant-ui/tooltip-icon-button.d.ts +0 -1
- package/dist/src/components/dynamic-form/index.d.ts +0 -1
- package/dist/src/components/scrollable-container.d.ts +8 -0
- package/dist/src/components/syntax-highlighter.d.ts +4 -0
- package/dist/src/components/threads.d.ts +0 -1
- package/dist/src/components/ui/alert-dialog.d.ts +26 -0
- package/dist/src/components/ui/autoform/AutoForm.d.ts +0 -1
- package/dist/src/components/ui/autoform/components/ArrayElementWrapper.d.ts +0 -1
- package/dist/src/components/ui/autoform/components/ArrayWrapper.d.ts +0 -1
- package/dist/src/components/ui/autoform/components/BooleanField.d.ts +0 -1
- package/dist/src/components/ui/autoform/components/DateField.d.ts +0 -1
- package/dist/src/components/ui/autoform/components/ErrorMessage.d.ts +0 -1
- package/dist/src/components/ui/autoform/components/FieldWrapper.d.ts +0 -1
- package/dist/src/components/ui/autoform/components/Form.d.ts +0 -1
- package/dist/src/components/ui/autoform/components/NumberField.d.ts +0 -1
- package/dist/src/components/ui/autoform/components/ObjectWrapper.d.ts +0 -1
- package/dist/src/components/ui/autoform/components/RecordField.d.ts +0 -1
- package/dist/src/components/ui/autoform/components/SelectField.d.ts +0 -1
- package/dist/src/components/ui/autoform/components/StringField.d.ts +0 -1
- package/dist/src/components/ui/autoform/components/SubmitButton.d.ts +0 -1
- package/dist/src/components/ui/autoform/index.d.ts +0 -1
- package/dist/src/components/ui/autoform/types.d.ts +0 -1
- package/dist/src/components/ui/autoform/utils.d.ts +2 -1
- package/dist/src/components/ui/badge.d.ts +0 -1
- package/dist/src/components/ui/button.d.ts +0 -1
- package/dist/src/components/ui/data-table.d.ts +0 -1
- package/dist/src/components/ui/entity-header.d.ts +7 -0
- package/dist/src/components/ui/entry.d.ts +6 -0
- package/dist/src/components/ui/input.d.ts +0 -1
- package/dist/src/components/ui/playground-tabs.d.ts +24 -0
- package/dist/src/components/ui/radio-group.d.ts +5 -0
- package/dist/src/components/ui/syntax-highlighter.d.ts +6 -0
- package/dist/src/components/ui/text.d.ts +0 -1
- package/dist/src/contexts/mastra-client-context.d.ts +0 -1
- package/dist/src/domains/agents/components/agent-advanced-settings.d.ts +1 -0
- package/dist/src/domains/agents/components/agent-chat.d.ts +2 -0
- package/dist/src/domains/agents/components/agent-entity-header.d.ts +6 -0
- package/dist/src/domains/agents/{agent → components}/agent-evals.d.ts +0 -1
- package/dist/src/domains/agents/components/agent-metadata/agent-metadata-list.d.ts +12 -0
- 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-section.d.ts +9 -0
- package/dist/src/domains/agents/components/agent-metadata/agent-metadata-wrapper.d.ts +4 -0
- package/dist/src/domains/agents/components/agent-metadata/agent-metadata.d.ts +23 -0
- package/dist/src/domains/agents/components/agent-metadata/index.d.ts +5 -0
- package/dist/src/domains/agents/components/agent-settings.d.ts +1 -0
- package/dist/src/domains/agents/components/agent-table/agent-table.d.ts +9 -0
- package/dist/src/domains/agents/components/agent-table/columns.d.ts +9 -0
- package/dist/src/domains/agents/components/agent-table/types.d.ts +12 -0
- package/dist/src/domains/agents/components/chat-threads.d.ts +10 -0
- package/dist/src/domains/agents/components/provider-map-icon.d.ts +12 -0
- package/dist/src/domains/agents/components/runtime-context.d.ts +5 -0
- package/dist/src/domains/agents/context/agent-context.d.ts +15 -0
- package/dist/src/domains/agents/context/agent-working-memory-context.d.ts +20 -0
- package/dist/src/domains/agents/context/index.d.ts +2 -0
- package/dist/src/domains/agents/hooks/use-agent-settings-state.d.ts +9 -0
- package/dist/src/domains/agents/hooks/use-agent-working-memory.d.ts +10 -0
- package/dist/src/domains/agents/index.d.ts +10 -4
- package/dist/src/domains/evals/types.d.ts +0 -1
- package/dist/src/domains/networks/components/network-table/columns.d.ts +3 -0
- package/dist/src/domains/networks/components/network-table/network-table.d.ts +10 -0
- package/dist/src/domains/networks/components/network-table/types.d.ts +10 -0
- package/dist/src/domains/networks/index.d.ts +2 -0
- package/dist/src/domains/networks/network-chat.d.ts +0 -1
- package/dist/src/domains/networks/network-context.d.ts +4 -1
- package/dist/src/domains/networks/tool-fallback.d.ts +0 -1
- package/dist/src/domains/networks/v-next/network-chat.d.ts +9 -0
- package/dist/src/domains/networks/v-next/step-dropdown.d.ts +1 -0
- package/dist/src/domains/networks/v-next/tool-fallback.d.ts +0 -0
- package/dist/src/{components/assistant-ui/assistant-message.d.ts → domains/networks/v-next/wrapped-assistant-message.d.ts} +2 -3
- package/dist/src/domains/resizable-panel.d.ts +0 -1
- package/dist/src/domains/scores/components/scorer-list.d.ts +8 -0
- package/dist/src/domains/scores/hooks/use-scorers.d.ts +24 -0
- package/dist/src/domains/scores/index.d.ts +2 -0
- package/dist/src/domains/tools/components/tool-list.d.ts +11 -0
- package/dist/src/domains/tools/index.d.ts +1 -0
- package/dist/src/domains/traces/{traces-table.d.ts → components/traces-table.d.ts} +1 -2
- package/dist/src/domains/traces/components/traces-view.d.ts +12 -0
- package/dist/src/domains/traces/context/trace-context.d.ts +0 -1
- package/dist/src/domains/traces/hooks/use-open-trace.d.ts +0 -1
- package/dist/src/domains/traces/index.d.ts +2 -0
- package/dist/src/domains/traces/trace-span-view.d.ts +0 -1
- package/dist/src/domains/traces/utils/createSpanTree.d.ts +0 -1
- package/dist/src/domains/traces/utils/getSpanVariant.d.ts +0 -1
- package/dist/src/{hooks → domains/voice/hooks}/use-speech-recognition.d.ts +4 -2
- package/dist/src/domains/voice/utils/record-mic-to-file.d.ts +1 -0
- package/dist/src/domains/workflows/components/workflow-table/columns.d.ts +3 -0
- package/dist/src/domains/workflows/components/workflow-table/types.d.ts +7 -0
- package/dist/src/domains/workflows/components/workflow-table/workflow-table.d.ts +10 -0
- package/dist/src/domains/workflows/context/use-current-run.d.ts +2 -1
- package/dist/src/domains/workflows/context/workflow-nested-graph-context.d.ts +7 -2
- package/dist/src/domains/workflows/context/workflow-run-context.d.ts +3 -3
- package/dist/src/domains/workflows/index.d.ts +1 -1
- package/dist/src/domains/workflows/runs/workflow-runs.d.ts +0 -1
- package/dist/src/domains/workflows/utils.d.ts +2 -3
- package/dist/src/domains/workflows/workflow/legacy-workflow-graph-inner.d.ts +0 -1
- package/dist/src/domains/workflows/workflow/legacy-workflow-graph.d.ts +0 -1
- package/dist/src/domains/workflows/workflow/legacy-workflow-nested-graph.d.ts +0 -1
- package/dist/src/domains/workflows/workflow/legacy-workflow-nested-node.d.ts +0 -1
- package/dist/src/domains/workflows/workflow/utils.d.ts +0 -1
- package/dist/src/domains/workflows/workflow/workflow-after-node.d.ts +0 -1
- package/dist/src/domains/workflows/workflow/workflow-condition-node.d.ts +0 -1
- package/dist/src/domains/workflows/workflow/workflow-default-node.d.ts +6 -3
- package/dist/src/domains/workflows/workflow/workflow-graph-inner.d.ts +4 -3
- package/dist/src/domains/workflows/workflow/workflow-graph.d.ts +4 -3
- package/dist/src/domains/workflows/workflow/workflow-input-data.d.ts +9 -0
- package/dist/src/domains/workflows/workflow/workflow-loop-result-node.d.ts +0 -1
- package/dist/src/domains/workflows/workflow/workflow-nested-graph.d.ts +7 -2
- package/dist/src/domains/workflows/workflow/workflow-nested-node.d.ts +12 -5
- package/dist/src/domains/workflows/workflow/workflow-run-event-form.d.ts +12 -0
- package/dist/src/domains/workflows/workflow/workflow-status.d.ts +2 -1
- package/dist/src/domains/workflows/workflow/workflow-step-action-bar.d.ts +8 -1
- package/dist/src/domains/workflows/workflow/workflow-trigger.d.ts +12 -11
- package/dist/src/domains/workflows/workflow/zoom-slider.d.ts +0 -1
- package/dist/src/ds/components/Badge/Badge.d.ts +0 -1
- package/dist/src/ds/components/Breadcrumb/Breadcrumb.d.ts +0 -1
- package/dist/src/ds/components/Button/Button.d.ts +1 -1
- package/dist/src/ds/components/EmptyState/EmptyState.d.ts +0 -1
- package/dist/src/ds/components/Header/Header.d.ts +0 -1
- package/dist/src/ds/components/Logo/MastraLogo.d.ts +0 -1
- package/dist/src/ds/components/Table/Cells.d.ts +0 -1
- package/dist/src/ds/components/Table/Table.d.ts +0 -1
- package/dist/src/ds/components/TraceTree/Span.d.ts +0 -1
- package/dist/src/ds/components/TraceTree/Spans.d.ts +0 -1
- package/dist/src/ds/components/TraceTree/Trace.d.ts +0 -1
- package/dist/src/ds/components/TraceTree/TraceTree.d.ts +0 -1
- package/dist/src/ds/components/Txt/Txt.d.ts +0 -1
- package/dist/src/ds/icons/AgentCoinIcon.d.ts +0 -1
- package/dist/src/ds/icons/AgentIcon.d.ts +0 -1
- package/dist/src/ds/icons/AiIcon.d.ts +0 -1
- package/dist/src/ds/icons/AmazonIcon.d.ts +2 -0
- package/dist/src/ds/icons/AnthropicChatIcon.d.ts +2 -0
- package/dist/src/ds/icons/AnthropicMessagesIcon.d.ts +2 -0
- package/dist/src/ds/icons/ApiIcon.d.ts +0 -1
- package/dist/src/ds/icons/AzureIcon.d.ts +2 -0
- package/dist/src/ds/icons/BranchIcon.d.ts +0 -1
- package/dist/src/ds/icons/CheckIcon.d.ts +0 -1
- package/dist/src/ds/icons/ChevronIcon.d.ts +0 -1
- package/dist/src/ds/icons/CohereIcon.d.ts +2 -0
- package/dist/src/ds/icons/CommitIcon.d.ts +0 -1
- package/dist/src/ds/icons/CrossIcon.d.ts +0 -1
- package/dist/src/ds/icons/DbIcon.d.ts +0 -1
- package/dist/src/ds/icons/DebugIcon.d.ts +0 -1
- package/dist/src/ds/icons/DeploymentIcon.d.ts +0 -1
- package/dist/src/ds/icons/DividerIcon.d.ts +0 -1
- package/dist/src/ds/icons/DocsIcon.d.ts +0 -1
- package/dist/src/ds/icons/EnvIcon.d.ts +0 -1
- package/dist/src/ds/icons/EvaluatorCoinIcon.d.ts +0 -1
- package/dist/src/ds/icons/FiltersIcon.d.ts +0 -1
- package/dist/src/ds/icons/FolderIcon.d.ts +0 -1
- package/dist/src/ds/icons/GithubCoinIcon.d.ts +0 -1
- package/dist/src/ds/icons/GithubIcon.d.ts +0 -1
- package/dist/src/ds/icons/GoogleIcon.d.ts +0 -1
- package/dist/src/ds/icons/GroqIcon.d.ts +2 -0
- package/dist/src/ds/icons/HomeIcon.d.ts +0 -1
- package/dist/src/ds/icons/Icon.d.ts +0 -1
- package/dist/src/ds/icons/InfoIcon.d.ts +0 -1
- package/dist/src/ds/icons/JudgeIcon.d.ts +0 -1
- package/dist/src/ds/icons/LatencyIcon.d.ts +0 -1
- package/dist/src/ds/icons/LogsIcon.d.ts +0 -1
- package/dist/src/ds/icons/McpCoinIcon.d.ts +0 -1
- package/dist/src/ds/icons/McpServerIcon.d.ts +0 -1
- package/dist/src/ds/icons/MemoryIcon.d.ts +0 -1
- package/dist/src/ds/icons/MistralIcon.d.ts +2 -0
- package/dist/src/ds/icons/OpenAIIcon.d.ts +0 -1
- package/dist/src/ds/icons/OpenaiChatIcon.d.ts +2 -0
- package/dist/src/ds/icons/PromptIcon.d.ts +0 -1
- package/dist/src/ds/icons/RepoIcon.d.ts +0 -1
- package/dist/src/ds/icons/ScoreIcon.d.ts +0 -1
- package/dist/src/ds/icons/SettingsIcon.d.ts +0 -1
- package/dist/src/ds/icons/SlashIcon.d.ts +0 -1
- package/dist/src/ds/icons/ToolCoinIcon.d.ts +0 -1
- package/dist/src/ds/icons/ToolsIcon.d.ts +0 -1
- package/dist/src/ds/icons/TraceIcon.d.ts +0 -1
- package/dist/src/ds/icons/TsIcon.d.ts +0 -1
- package/dist/src/ds/icons/VariablesIcon.d.ts +0 -1
- package/dist/src/ds/icons/WorkflowCoinIcon.d.ts +0 -1
- package/dist/src/ds/icons/WorkflowIcon.d.ts +0 -1
- package/dist/src/ds/icons/XGroqIcon.d.ts +2 -0
- package/dist/src/ds/tokens/colors.d.ts +12 -0
- package/dist/src/hooks/index.d.ts +1 -0
- package/dist/src/hooks/use-autoscroll.d.ts +0 -1
- package/dist/src/hooks/use-in-view.d.ts +9 -0
- package/dist/src/hooks/use-resize-column.d.ts +0 -1
- package/dist/src/hooks/use-workflow-runs.d.ts +4 -0
- package/dist/src/hooks/use-workflows.d.ts +5 -2
- package/dist/src/index.d.ts +13 -2
- package/dist/src/lib/formatting.d.ts +2 -0
- package/dist/src/lib/framework.d.ts +13 -0
- package/dist/src/lib/mastra-client.d.ts +0 -1
- package/dist/src/lib/tanstack-query.d.ts +4 -0
- package/dist/src/lib/utils.d.ts +0 -1
- package/dist/src/services/mastra-runtime-provider.d.ts +2 -3
- package/dist/src/services/network-runtime-provider.d.ts +5 -4
- package/dist/src/services/vnext-message-provider.d.ts +10 -0
- package/dist/src/services/vnext-network-chat-provider.d.ts +17 -0
- package/dist/src/services/vnext-network-runtime-provider.d.ts +9 -0
- package/dist/src/types/memory.d.ts +29 -0
- package/dist/src/types.d.ts +37 -3
- package/dist/tokens.cjs.js +1 -1
- package/dist/tokens.d.ts +1 -0
- package/dist/tokens.es.js +1 -1
- package/package.json +30 -28
- package/dist/colors-CBG_Mm7P.js.map +0 -1
- package/dist/colors-Du4i-E0i.cjs.map +0 -1
- package/dist/src/components/assistant-ui/assistant-modal.d.ts +0 -1
- package/dist/src/components/assistant-ui/attachment.d.ts +0 -5
- package/dist/src/components/assistant-ui/image-with-fallback.d.ts +0 -3
- package/dist/src/components/assistant-ui/markdown-text.d.ts +0 -2
- package/dist/src/components/assistant-ui/user-message.d.ts +0 -1
- package/dist/src/components/ui/autoform/zodProvider/field-type-inference.d.ts +0 -4
- package/dist/src/components/ui/autoform/zodProvider/index.d.ts +0 -9
- package/dist/src/domains/agents/agent/agent-chat.d.ts +0 -3
- package/dist/src/domains/agents/agent/agent-traces.d.ts +0 -10
- package/dist/src/domains/agents/agent/context/agent-context.d.ts +0 -19
- package/dist/src/domains/workflows/workflow/workflow-traces.d.ts +0 -11
- package/dist/src/main.d.ts +0 -1
- package/dist/src/store/agent-store.d.ts +0 -20
- /package/dist/src/components/assistant-ui/{use-has-attachments.d.ts → hooks/use-has-attachments.d.ts} +0 -0
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GetWorkflowResponse } from '@mastra/client-js';
|
|
3
|
-
|
|
1
|
+
import { GetWorkflowResponse, WorkflowWatchResult } from '@mastra/client-js';
|
|
4
2
|
interface WorkflowTriggerProps {
|
|
5
3
|
workflowId: string;
|
|
6
4
|
setRunId?: (runId: string) => void;
|
|
@@ -12,10 +10,11 @@ interface WorkflowTriggerProps {
|
|
|
12
10
|
}) => Promise<{
|
|
13
11
|
runId: string;
|
|
14
12
|
}>;
|
|
15
|
-
|
|
13
|
+
isStreamingWorkflow: boolean;
|
|
14
|
+
streamWorkflow: ({ workflowId, runId, inputData, runtimeContext, }: {
|
|
16
15
|
workflowId: string;
|
|
17
16
|
runId: string;
|
|
18
|
-
|
|
17
|
+
inputData: Record<string, unknown>;
|
|
19
18
|
runtimeContext: Record<string, unknown>;
|
|
20
19
|
}) => Promise<void>;
|
|
21
20
|
resumeWorkflow: ({ workflowId, step, runId, resumeData, runtimeContext, }: {
|
|
@@ -27,13 +26,15 @@ interface WorkflowTriggerProps {
|
|
|
27
26
|
}) => Promise<{
|
|
28
27
|
message: string;
|
|
29
28
|
}>;
|
|
30
|
-
|
|
29
|
+
streamResult: WorkflowWatchResult | null;
|
|
30
|
+
isResumingWorkflow: boolean;
|
|
31
|
+
isCancellingWorkflowRun: boolean;
|
|
32
|
+
cancelWorkflowRun: ({ workflowId, runId }: {
|
|
31
33
|
workflowId: string;
|
|
32
34
|
runId: string;
|
|
33
|
-
}) => Promise<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
isResumingWorkflow: boolean;
|
|
35
|
+
}) => Promise<{
|
|
36
|
+
message: string;
|
|
37
|
+
}>;
|
|
37
38
|
}
|
|
38
|
-
export declare function WorkflowTrigger({ workflowId, setRunId, workflow, isLoading, createWorkflowRun,
|
|
39
|
+
export declare function WorkflowTrigger({ workflowId, setRunId, workflow, isLoading, createWorkflowRun, resumeWorkflow, streamWorkflow, isStreamingWorkflow, streamResult, isResumingWorkflow, isCancellingWorkflowRun, cancelWorkflowRun, }: WorkflowTriggerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
39
40
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { default as React } from '../../../../node_modules/@types/react';
|
|
2
|
-
|
|
3
2
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
3
|
as?: React.ElementType;
|
|
5
4
|
className?: string;
|
|
@@ -9,5 +8,6 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
9
8
|
children: React.ReactNode;
|
|
10
9
|
size?: 'md' | 'lg';
|
|
11
10
|
variant?: 'default' | 'light';
|
|
11
|
+
target?: string;
|
|
12
12
|
}
|
|
13
13
|
export declare const Button: ({ className, as, size, variant, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from '../../../../node_modules/@types/react';
|
|
2
2
|
import { FontSizes } from '../../tokens';
|
|
3
|
-
|
|
4
3
|
export interface TxtProps extends React.HTMLAttributes<HTMLDivElement | HTMLLabelElement> {
|
|
5
4
|
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'label';
|
|
6
5
|
variant?: keyof typeof FontSizes;
|
|
@@ -8,6 +8,18 @@ export declare const Colors: {
|
|
|
8
8
|
accent2: string;
|
|
9
9
|
accent3: string;
|
|
10
10
|
accent4: string;
|
|
11
|
+
accent5: string;
|
|
12
|
+
accent6: string;
|
|
13
|
+
accent1Dark: string;
|
|
14
|
+
accent2Dark: string;
|
|
15
|
+
accent3Dark: string;
|
|
16
|
+
accent5Dark: string;
|
|
17
|
+
accent6Dark: string;
|
|
18
|
+
accent1Darker: string;
|
|
19
|
+
accent2Darker: string;
|
|
20
|
+
accent3Darker: string;
|
|
21
|
+
accent5Darker: string;
|
|
22
|
+
accent6Darker: string;
|
|
11
23
|
};
|
|
12
24
|
export declare const BorderColors: {
|
|
13
25
|
border1: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './use-in-view';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tracks whether or not the given element is currently in view.
|
|
3
|
+
* This is to replace framer-motion's `useInView` which has issues
|
|
4
|
+
* tracking a ref that is set at a time other than mount.
|
|
5
|
+
*/
|
|
6
|
+
export declare const useInView: () => {
|
|
7
|
+
inView: boolean;
|
|
8
|
+
setRef: (node: HTMLDivElement | null) => (() => void) | undefined;
|
|
9
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { LegacyWorkflowRunResult, WorkflowWatchResult } from '@mastra/client-js';
|
|
1
|
+
import { LegacyWorkflowRunResult, WorkflowWatchResult, GetWorkflowResponse } from '@mastra/client-js';
|
|
2
2
|
import { LegacyWorkflow } from '@mastra/core/workflows/legacy';
|
|
3
|
-
|
|
4
3
|
export type ExtendedLegacyWorkflowRunResult = LegacyWorkflowRunResult & {
|
|
5
4
|
sanitizedOutput?: string | null;
|
|
6
5
|
sanitizedError?: {
|
|
@@ -15,6 +14,10 @@ export type ExtendedWorkflowWatchResult = WorkflowWatchResult & {
|
|
|
15
14
|
stack?: string;
|
|
16
15
|
} | null;
|
|
17
16
|
};
|
|
17
|
+
export declare const useWorkflow: (workflowId: string) => {
|
|
18
|
+
workflow: GetWorkflowResponse | null;
|
|
19
|
+
isLoading: boolean;
|
|
20
|
+
};
|
|
18
21
|
export declare const useLegacyWorkflow: (workflowId: string) => {
|
|
19
22
|
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
23
|
isLoading: boolean;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
|
|
2
1
|
export * from './contexts/mastra-client-context';
|
|
3
2
|
export * from './domains/agents/index';
|
|
4
3
|
export * from './domains/networks/index';
|
|
4
|
+
export * from './domains/scores/index';
|
|
5
|
+
export * from './domains/tools/index';
|
|
5
6
|
export * from './domains/workflows/index';
|
|
7
|
+
export * from './domains/traces/index';
|
|
6
8
|
export * from './domains/resizable-panel';
|
|
7
9
|
export * from './components/dynamic-form/index';
|
|
8
10
|
export * from './components/ui/data-table';
|
|
9
11
|
export * from './components/ui/containers';
|
|
10
12
|
export * from './components/threads';
|
|
13
|
+
export * from './components/ui/entity-header';
|
|
14
|
+
export * from './components/ui/playground-tabs';
|
|
11
15
|
export * from './types';
|
|
12
16
|
export * from './ds/components/Badge/index';
|
|
13
17
|
export * from './ds/components/Button/index';
|
|
@@ -20,6 +24,13 @@ export * from './ds/components/Entity/index';
|
|
|
20
24
|
export * from './ds/components/EmptyState/index';
|
|
21
25
|
export * from './ds/icons/index';
|
|
22
26
|
export * from './lib/polls';
|
|
23
|
-
export * from './hooks/use-speech-recognition';
|
|
27
|
+
export * from './domains/voice/hooks/use-speech-recognition';
|
|
28
|
+
export * from './components/ui/radio-group';
|
|
29
|
+
export * from './components/ui/entry';
|
|
30
|
+
export * from './hooks';
|
|
31
|
+
export * from './lib/tanstack-query';
|
|
24
32
|
export type { TraceContextType } from './domains/traces/context/trace-context';
|
|
25
33
|
export * from './store/playground-store';
|
|
34
|
+
export * from './lib/framework';
|
|
35
|
+
export { MemorySearch } from './components/assistant-ui/memory-search';
|
|
36
|
+
export * from './components/ui/alert-dialog';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes, ForwardRefExoticComponent, RefAttributes } from '../../node_modules/@types/react';
|
|
2
|
+
export type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
3
|
+
export type LinkComponent = ForwardRefExoticComponent<LinkComponentProps & RefAttributes<HTMLAnchorElement>>;
|
|
4
|
+
export interface LinkComponentProviderProps {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
Link: LinkComponent;
|
|
7
|
+
navigate: (path: string) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const LinkComponentProvider: ({ children, Link, navigate }: LinkComponentProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const useLinkComponent: () => {
|
|
11
|
+
Link: LinkComponent;
|
|
12
|
+
navigate: (path: string) => void;
|
|
13
|
+
};
|
package/dist/src/lib/utils.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from '../../node_modules/@types/react';
|
|
2
2
|
import { ChatProps } from '../types';
|
|
3
|
-
|
|
4
|
-
export declare function MastraRuntimeProvider({ children, agentId, initialMessages, agentName, memory, threadId, refreshThreadList, modelSettings, chatWithGenerate, runtimeContext, }: Readonly<{
|
|
3
|
+
export declare function MastraRuntimeProvider({ children, agentId, initialMessages, memory, threadId, refreshThreadList, settings, runtimeContext, }: Readonly<{
|
|
5
4
|
children: ReactNode;
|
|
6
|
-
}> & ChatProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
}> & ChatProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from '../../node_modules/@types/react';
|
|
2
|
-
import { ChatProps } from '../types';
|
|
3
|
-
|
|
4
|
-
export declare function MastraNetworkRuntimeProvider({ children, agentId, initialMessages, memory, threadId, refreshThreadList, modelSettings, }: Readonly<{
|
|
2
|
+
import { ChatProps, ModelSettings } from '../types';
|
|
3
|
+
export declare function MastraNetworkRuntimeProvider({ children, agentId, initialMessages, memory, threadId, modelSettings, }: Readonly<{
|
|
5
4
|
children: ReactNode;
|
|
6
|
-
}> & ChatProps
|
|
5
|
+
}> & Omit<ChatProps, 'settings'> & {
|
|
6
|
+
modelSettings: ModelSettings;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React, ReactNode } from '../../node_modules/@types/react';
|
|
2
|
+
import { ThreadMessageLike } from '@assistant-ui/react';
|
|
3
|
+
export declare const MessagesProvider: ({ children }: {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const useMessages: () => {
|
|
7
|
+
messages: ThreadMessageLike[];
|
|
8
|
+
setMessages: React.Dispatch<React.SetStateAction<ThreadMessageLike[]>>;
|
|
9
|
+
appendToLastMessage: (partial: string) => void;
|
|
10
|
+
};
|