@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
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from '../../../../node_modules/@types/react';
|
|
2
|
+
type AgentWorkingMemoryContextType = {
|
|
3
|
+
threadExists: boolean;
|
|
4
|
+
workingMemoryData: string | null;
|
|
5
|
+
workingMemorySource: 'thread' | 'resource';
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
isUpdating: boolean;
|
|
8
|
+
updateWorkingMemory: (newMemory: string) => Promise<void>;
|
|
9
|
+
refetch: () => Promise<void>;
|
|
10
|
+
};
|
|
11
|
+
export declare const WorkingMemoryContext: import('../../../../node_modules/@types/react').Context<AgentWorkingMemoryContextType>;
|
|
12
|
+
export interface AgentWorkingMemoryProviderProps {
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
agentId: string;
|
|
15
|
+
threadId: string;
|
|
16
|
+
resourceId: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function WorkingMemoryProvider({ agentId, threadId, resourceId, children }: AgentWorkingMemoryProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function useWorkingMemory(): AgentWorkingMemoryContextType;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AgentSettingsType as AgentSettings } from '../../../types';
|
|
2
|
+
export interface AgentSettingsStateProps {
|
|
3
|
+
agentId: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function useAgentSettingsState({ agentId }: AgentSettingsStateProps): {
|
|
6
|
+
settings: AgentSettings | undefined;
|
|
7
|
+
setSettings: (settingsValue: AgentSettings) => void;
|
|
8
|
+
resetAll: () => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function useAgentWorkingMemory(agentId: string, threadId: string, resourceId: string): {
|
|
2
|
+
threadExists: boolean;
|
|
3
|
+
workingMemoryData: string | null;
|
|
4
|
+
workingMemorySource: "resource" | "thread";
|
|
5
|
+
workingMemoryFormat: "json" | "markdown";
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
isUpdating: boolean;
|
|
8
|
+
refetch: () => Promise<void>;
|
|
9
|
+
updateWorkingMemory: (newMemory: string) => Promise<void>;
|
|
10
|
+
};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
1
|
+
export * from './components/agent-chat';
|
|
2
|
+
export * from './components/agent-evals';
|
|
3
|
+
export * from './context';
|
|
4
|
+
export * from './components/agent-settings';
|
|
5
|
+
export * from './components/agent-table/agent-table';
|
|
6
|
+
export * from './components/runtime-context';
|
|
7
|
+
export * from './components/provider-map-icon';
|
|
8
|
+
export * from './components/agent-metadata';
|
|
9
|
+
export * from './components/agent-entity-header';
|
|
10
|
+
export * from './components/chat-threads';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GetNetworkResponse, GetVNextNetworkResponse } from '@mastra/client-js';
|
|
2
|
+
export interface NetworkTableProps {
|
|
3
|
+
legacyNetworks: GetNetworkResponse[];
|
|
4
|
+
networks: GetVNextNetworkResponse[];
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
computeLink: (networkId: string, isVNext: boolean) => string;
|
|
7
|
+
}
|
|
8
|
+
export declare const NetworkTable: ({ legacyNetworks, networks, isLoading, computeLink }: NetworkTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const NetworkTableEmpty: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const NetworkTableSkeleton: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { ReactNode } from '../../../node_modules/@types/react';
|
|
2
2
|
import { ModelSettings } from '../../types';
|
|
3
|
-
|
|
4
3
|
type NetworkContextType = {
|
|
5
4
|
modelSettings: ModelSettings;
|
|
6
5
|
setModelSettings: React.Dispatch<React.SetStateAction<ModelSettings>>;
|
|
7
6
|
resetModelSettings: () => void;
|
|
7
|
+
chatWithLoop: boolean;
|
|
8
|
+
setChatWithLoop: React.Dispatch<React.SetStateAction<boolean>>;
|
|
9
|
+
maxIterations: number | undefined;
|
|
10
|
+
setMaxIterations: React.Dispatch<React.SetStateAction<number | undefined>>;
|
|
8
11
|
};
|
|
9
12
|
export declare const NetworkContext: import('../../../node_modules/@types/react').Context<NetworkContextType>;
|
|
10
13
|
export declare function NetworkProvider({ children }: {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Message } from '../../../types';
|
|
2
|
+
export declare const VNextNetworkChat: ({ networkId, networkName, threadId, initialMessages, memory, refreshThreadList, }: {
|
|
3
|
+
networkId: string;
|
|
4
|
+
networkName: string;
|
|
5
|
+
threadId: string;
|
|
6
|
+
initialMessages?: Message[];
|
|
7
|
+
memory?: boolean;
|
|
8
|
+
refreshThreadList?: () => void;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StepDropdown: () => import("react/jsx-runtime").JSX.Element;
|
|
File without changes
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ToolCallContentPartComponent } from '@assistant-ui/react';
|
|
2
|
-
import { FC } from '
|
|
3
|
-
|
|
4
|
-
export declare const AssistantMessage: FC<{
|
|
2
|
+
import { FC } from '../../../../node_modules/@types/react';
|
|
3
|
+
export declare const NextAssistantMessage: FC<{
|
|
5
4
|
ToolFallback?: ToolCallContentPartComponent;
|
|
6
5
|
}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ScoringEntityType } from '@mastra/core/scores';
|
|
2
|
+
export interface ScorerListProps {
|
|
3
|
+
entityId: string;
|
|
4
|
+
entityType: ScoringEntityType;
|
|
5
|
+
}
|
|
6
|
+
export declare const ScorerList: ({ entityId, entityType }: ScorerListProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const EmptyScorerList: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const ScorerSkeleton: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { GetScorerResponse, GetScoresResponse } from '@mastra/client-js';
|
|
2
|
+
export declare const useScoresByEntityId: (entityId: string, entityType: string, page?: number) => {
|
|
3
|
+
scores: GetScoresResponse | null;
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
};
|
|
6
|
+
type UseScoresByScorerIdProps = {
|
|
7
|
+
scorerId: string;
|
|
8
|
+
page?: number;
|
|
9
|
+
entityId?: string;
|
|
10
|
+
entityType?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const useScoresByScorerId: ({ scorerId, page, entityId, entityType }: UseScoresByScorerIdProps) => {
|
|
13
|
+
scores: GetScoresResponse | null;
|
|
14
|
+
isLoading: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare const useScorer: (scorerId: string) => {
|
|
17
|
+
scorer: GetScorerResponse | null;
|
|
18
|
+
isLoading: boolean;
|
|
19
|
+
};
|
|
20
|
+
export declare const useScorers: () => {
|
|
21
|
+
scorers: Record<string, GetScorerResponse>;
|
|
22
|
+
isLoading: boolean;
|
|
23
|
+
};
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GetAgentResponse, GetToolResponse } from '@mastra/client-js';
|
|
2
|
+
export interface ToolListProps {
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
tools: Record<string, GetToolResponse>;
|
|
5
|
+
agents: Record<string, GetAgentResponse>;
|
|
6
|
+
computeLink: (toolId: string, agentId?: string) => string;
|
|
7
|
+
computeAgentLink: (toolId: string, agentId: string) => string;
|
|
8
|
+
}
|
|
9
|
+
export declare const ToolList: ({ tools, agents, isLoading, computeLink, computeAgentLink }: ToolListProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const ToolListSkeleton: () => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const ToolListEmpty: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/tool-list';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RefinedTrace } from '../types';
|
|
2
|
+
export interface TracesViewProps {
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
error: Error | null;
|
|
5
|
+
traces: RefinedTrace[];
|
|
6
|
+
runId?: string;
|
|
7
|
+
stepName?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
setEndOfListElement: (element: HTMLDivElement | null) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function TracesView({ isLoading, error, traces, runId, stepName, className, setEndOfListElement, }: TracesViewProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const TracesViewSkeleton: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,11 +5,13 @@ export interface SpeechRecognitionState {
|
|
|
5
5
|
}
|
|
6
6
|
export interface UseSpeechRecognitionArgs {
|
|
7
7
|
language?: string;
|
|
8
|
+
agentId?: string;
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
+
type BrowserSpeechRecognition = {
|
|
10
11
|
start: () => void;
|
|
11
12
|
stop: () => void;
|
|
12
13
|
isListening: boolean;
|
|
13
14
|
transcript: string;
|
|
14
|
-
error: string | null;
|
|
15
15
|
};
|
|
16
|
+
export declare const useSpeechRecognition: ({ language, agentId, }: UseSpeechRecognitionArgs) => BrowserSpeechRecognition;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function recordMicrophoneToFile(onFinish: (file: File) => void): Promise<MediaRecorder>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GetLegacyWorkflowResponse, GetWorkflowResponse } from '@mastra/client-js';
|
|
2
|
+
export interface WorkflowTableProps {
|
|
3
|
+
workflows?: Record<string, GetWorkflowResponse>;
|
|
4
|
+
legacyWorkflows?: Record<string, GetLegacyWorkflowResponse>;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
computeLink: (agentId: string) => string;
|
|
7
|
+
}
|
|
8
|
+
export declare function WorkflowTable({ workflows, legacyWorkflows, isLoading, computeLink }: WorkflowTableProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const WorkflowTableSkeleton: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const EmptyWorkflowsTable: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,9 +2,10 @@ export type Step = {
|
|
|
2
2
|
error?: any;
|
|
3
3
|
startedAt: number;
|
|
4
4
|
endedAt?: number;
|
|
5
|
-
status: 'running' | 'success' | 'failed' | 'suspended';
|
|
5
|
+
status: 'running' | 'success' | 'failed' | 'suspended' | 'waiting';
|
|
6
6
|
output?: any;
|
|
7
7
|
input?: any;
|
|
8
|
+
resumeData?: any;
|
|
8
9
|
};
|
|
9
10
|
type UseCurrentRunReturnType = {
|
|
10
11
|
steps: Record<string, Step>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SerializedStepFlowEntry } from '@mastra/core/workflows';
|
|
2
|
-
|
|
2
|
+
import { WorkflowSendEventFormProps } from '../workflow/workflow-run-event-form';
|
|
3
3
|
type WorkflowNestedGraphContextType = {
|
|
4
4
|
showNestedGraph: ({ label, stepGraph, fullStep, }: {
|
|
5
5
|
label: string;
|
|
@@ -9,7 +9,12 @@ type WorkflowNestedGraphContextType = {
|
|
|
9
9
|
closeNestedGraph: () => void;
|
|
10
10
|
};
|
|
11
11
|
export declare const WorkflowNestedGraphContext: import('../../../../node_modules/@types/react').Context<WorkflowNestedGraphContextType>;
|
|
12
|
-
export declare function WorkflowNestedGraphProvider({ children }: {
|
|
12
|
+
export declare function WorkflowNestedGraphProvider({ children, onShowTrace, onSendEvent, }: {
|
|
13
13
|
children: React.ReactNode;
|
|
14
|
+
onShowTrace?: ({ runId, stepName }: {
|
|
15
|
+
runId: string;
|
|
16
|
+
stepName: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
onSendEvent?: WorkflowSendEventFormProps['onSendEvent'];
|
|
14
19
|
}): import("react/jsx-runtime").JSX.Element;
|
|
15
20
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ExtendedLegacyWorkflowRunResult
|
|
1
|
+
import { ExtendedLegacyWorkflowRunResult } from '../../../hooks/use-workflows';
|
|
2
2
|
import { WorkflowRunState } from '@mastra/core';
|
|
3
|
-
|
|
3
|
+
import { WorkflowWatchResult } from '@mastra/client-js';
|
|
4
4
|
type WorkflowRunContextType = {
|
|
5
5
|
legacyResult: ExtendedLegacyWorkflowRunResult | null;
|
|
6
6
|
setLegacyResult: React.Dispatch<React.SetStateAction<any>>;
|
|
7
|
-
result:
|
|
7
|
+
result: WorkflowWatchResult | null;
|
|
8
8
|
setResult: React.Dispatch<React.SetStateAction<any>>;
|
|
9
9
|
payload: any;
|
|
10
10
|
setPayload: React.Dispatch<React.SetStateAction<any>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from './workflow/workflow-traces';
|
|
2
1
|
export * from './workflow/legacy-workflow-graph';
|
|
3
2
|
export * from './workflow/legacy-workflow-trigger';
|
|
4
3
|
export * from './context/workflow-run-context';
|
|
@@ -6,3 +5,4 @@ export * from './workflow/workflow-graph';
|
|
|
6
5
|
export * from './workflow/workflow-trigger';
|
|
7
6
|
export * from './context/use-current-run';
|
|
8
7
|
export * from './runs/workflow-runs';
|
|
8
|
+
export * from './components/workflow-table/workflow-table';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { WorkflowRunState } from '@mastra/core/workflows';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export declare function convertWorkflowRunStateToWatchResult(runState: WorkflowRunState): ExtendedWorkflowWatchResult;
|
|
2
|
+
import { WorkflowWatchResult } from '@mastra/client-js';
|
|
3
|
+
export declare function convertWorkflowRunStateToWatchResult(runState: WorkflowRunState): WorkflowWatchResult;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Workflow } from '@mastra/core/workflows';
|
|
2
2
|
import { StepCondition } from '@mastra/core/workflows/legacy';
|
|
3
3
|
import { Node, Edge } from '@xyflow/react';
|
|
4
|
-
|
|
5
4
|
export type ConditionConditionType = 'if' | 'else' | 'when' | 'until' | 'while' | 'dountil' | 'dowhile';
|
|
6
5
|
export type Condition = {
|
|
7
6
|
type: ConditionConditionType;
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { NodeProps, Node } from '@xyflow/react';
|
|
2
|
-
|
|
2
|
+
import { WorkflowSendEventFormProps } from './workflow-run-event-form';
|
|
3
3
|
export type DefaultNode = Node<{
|
|
4
4
|
label: string;
|
|
5
5
|
description?: string;
|
|
6
6
|
withoutTopHandle?: boolean;
|
|
7
7
|
withoutBottomHandle?: boolean;
|
|
8
8
|
mapConfig?: string;
|
|
9
|
+
event?: string;
|
|
10
|
+
duration?: number;
|
|
11
|
+
date?: Date;
|
|
9
12
|
}, 'default-node'>;
|
|
10
13
|
export interface WorkflowDefaultNodeProps {
|
|
11
|
-
data: DefaultNode['data'];
|
|
12
14
|
onShowTrace?: ({ runId, stepName }: {
|
|
13
15
|
runId: string;
|
|
14
16
|
stepName: string;
|
|
15
17
|
}) => void;
|
|
18
|
+
onSendEvent?: WorkflowSendEventFormProps['onSendEvent'];
|
|
16
19
|
parentWorkflowName?: string;
|
|
17
20
|
}
|
|
18
|
-
export declare function WorkflowDefaultNode({ data, onShowTrace, parentWorkflowName, }: NodeProps<DefaultNode> & WorkflowDefaultNodeProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function WorkflowDefaultNode({ data, onShowTrace, parentWorkflowName, onSendEvent, }: NodeProps<DefaultNode> & WorkflowDefaultNodeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { GetWorkflowResponse } from '@mastra/client-js';
|
|
2
|
-
|
|
2
|
+
import { WorkflowSendEventFormProps } from './workflow-run-event-form';
|
|
3
3
|
export interface WorkflowGraphInnerProps {
|
|
4
4
|
workflow: {
|
|
5
5
|
stepGraph: GetWorkflowResponse['stepGraph'];
|
|
6
6
|
};
|
|
7
|
-
onShowTrace
|
|
7
|
+
onShowTrace?: ({ runId, stepName }: {
|
|
8
8
|
runId: string;
|
|
9
9
|
stepName: string;
|
|
10
10
|
}) => void;
|
|
11
|
+
onSendEvent?: WorkflowSendEventFormProps['onSendEvent'];
|
|
11
12
|
}
|
|
12
|
-
export declare function WorkflowGraphInner({ workflow, onShowTrace }: WorkflowGraphInnerProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function WorkflowGraphInner({ workflow, onShowTrace, onSendEvent }: WorkflowGraphInnerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { GetWorkflowResponse } from '@mastra/client-js';
|
|
2
|
-
|
|
2
|
+
import { WorkflowSendEventFormProps } from './workflow-run-event-form';
|
|
3
3
|
export interface WorkflowGraphProps {
|
|
4
4
|
workflowId: string;
|
|
5
5
|
isLoading?: boolean;
|
|
6
6
|
workflow?: GetWorkflowResponse;
|
|
7
|
-
onShowTrace
|
|
7
|
+
onShowTrace?: ({ runId, stepName }: {
|
|
8
8
|
runId: string;
|
|
9
9
|
stepName: string;
|
|
10
10
|
}) => void;
|
|
11
|
+
onSendEvent?: WorkflowSendEventFormProps['onSendEvent'];
|
|
11
12
|
}
|
|
12
|
-
export declare function WorkflowGraph({ workflowId, onShowTrace, workflow, isLoading }: WorkflowGraphProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function WorkflowGraph({ workflowId, onShowTrace, workflow, isLoading, onSendEvent }: WorkflowGraphProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ZodSchema } from 'zod';
|
|
2
|
+
export interface WorkflowInputDataProps {
|
|
3
|
+
schema: ZodSchema;
|
|
4
|
+
defaultValues?: any;
|
|
5
|
+
isSubmitLoading: boolean;
|
|
6
|
+
submitButtonLabel: string;
|
|
7
|
+
onSubmit: (data: any) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const WorkflowInputData: ({ schema, defaultValues, isSubmitLoading, submitButtonLabel, onSubmit, }: WorkflowInputDataProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { SerializedStepFlowEntry } from '@mastra/core/workflows';
|
|
2
|
-
|
|
2
|
+
import { WorkflowSendEventFormProps } from './workflow-run-event-form';
|
|
3
3
|
export interface WorkflowNestedGraphProps {
|
|
4
4
|
stepGraph: SerializedStepFlowEntry[];
|
|
5
5
|
open: boolean;
|
|
6
6
|
workflowName: string;
|
|
7
|
+
onShowTrace?: ({ runId, stepName }: {
|
|
8
|
+
runId: string;
|
|
9
|
+
stepName: string;
|
|
10
|
+
}) => void;
|
|
11
|
+
onSendEvent?: WorkflowSendEventFormProps['onSendEvent'];
|
|
7
12
|
}
|
|
8
|
-
export declare function WorkflowNestedGraph({ stepGraph, open, workflowName }: WorkflowNestedGraphProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function WorkflowNestedGraph({ stepGraph, open, workflowName, onShowTrace, onSendEvent, }: WorkflowNestedGraphProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import { NodeProps, Node } from '@xyflow/react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { SerializedStepFlowEntry } from '@mastra/core/workflows';
|
|
3
|
+
import { WorkflowSendEventFormProps } from './workflow-run-event-form';
|
|
4
4
|
export type NestedNode = Node<{
|
|
5
5
|
label: string;
|
|
6
6
|
description?: string;
|
|
7
7
|
withoutTopHandle?: boolean;
|
|
8
8
|
withoutBottomHandle?: boolean;
|
|
9
|
-
stepGraph:
|
|
9
|
+
stepGraph: SerializedStepFlowEntry[];
|
|
10
10
|
mapConfig?: string;
|
|
11
|
+
event?: string;
|
|
11
12
|
}, 'nested-node'>;
|
|
12
|
-
export
|
|
13
|
+
export interface WorkflowNestedNodeProps {
|
|
14
|
+
onShowTrace?: ({ runId, stepName }: {
|
|
15
|
+
runId: string;
|
|
16
|
+
stepName: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
onSendEvent?: WorkflowSendEventFormProps['onSendEvent'];
|
|
13
19
|
parentWorkflowName?: string;
|
|
14
|
-
}
|
|
20
|
+
}
|
|
21
|
+
export declare function WorkflowNestedNode({ data, parentWorkflowName, onShowTrace, onSendEvent, }: NodeProps<NestedNode> & WorkflowNestedNodeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type WorkflowSendEventFormProps = {
|
|
2
|
+
event: string;
|
|
3
|
+
runId: string;
|
|
4
|
+
onSendEvent: (params: {
|
|
5
|
+
event: string;
|
|
6
|
+
data: unknown;
|
|
7
|
+
runId: string;
|
|
8
|
+
}) => Promise<{
|
|
9
|
+
message: string;
|
|
10
|
+
}>;
|
|
11
|
+
};
|
|
12
|
+
export declare const WorkflowRunEventForm: ({ event, runId, onSendEvent }: WorkflowSendEventFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export interface WorkflowStatusProps {
|
|
2
2
|
stepId: string;
|
|
3
3
|
status: string;
|
|
4
|
+
result: Record<string, unknown>;
|
|
4
5
|
}
|
|
5
|
-
export declare const WorkflowStatus: ({ stepId, status }: WorkflowStatusProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const WorkflowStatus: ({ stepId, status, result }: WorkflowStatusProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
import { WorkflowSendEventFormProps } from './workflow-run-event-form';
|
|
1
2
|
export interface WorkflowStepActionBarProps {
|
|
2
3
|
input?: any;
|
|
3
4
|
output?: any;
|
|
5
|
+
resumeData?: any;
|
|
4
6
|
error?: any;
|
|
5
7
|
stepName: string;
|
|
6
8
|
mapConfig?: string;
|
|
9
|
+
event?: string;
|
|
7
10
|
onShowTrace?: () => void;
|
|
11
|
+
onShowNestedGraph?: () => void;
|
|
12
|
+
onSendEvent?: WorkflowSendEventFormProps['onSendEvent'];
|
|
13
|
+
runId?: string;
|
|
14
|
+
status?: 'running' | 'success' | 'failed' | 'suspended' | 'waiting';
|
|
8
15
|
}
|
|
9
|
-
export declare const WorkflowStepActionBar: ({ input, output, error, mapConfig, stepName, onShowTrace, }: WorkflowStepActionBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const WorkflowStepActionBar: ({ input, output, resumeData, error, mapConfig, stepName, event, onShowTrace, onShowNestedGraph, onSendEvent, runId, status, }: WorkflowStepActionBarProps) => import("react/jsx-runtime").JSX.Element;
|