@mastra/playground-ui 0.0.0-working-memory-per-user-20250620163010 → 0.0.0-wrapping-tooltip-provider-runtime-context-20250716134707
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-CBG_Mm7P.js → colors-BauMYA7t.js} +3 -2
- package/dist/colors-BauMYA7t.js.map +1 -0
- package/dist/{colors-Du4i-E0i.cjs → colors-BjoU9dWU.cjs} +3 -2
- package/dist/colors-BjoU9dWU.cjs.map +1 -0
- package/dist/index.cjs.js +5449 -2366
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5439 -2383
- 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/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/messages/assistant-message.d.ts +6 -0
- package/dist/src/components/assistant-ui/messages/markdown-text.d.ts +2 -0
- package/dist/src/components/assistant-ui/messages/reasoning.d.ts +3 -0
- package/dist/src/components/assistant-ui/messages/user-messages.d.ts +9 -0
- package/dist/src/components/assistant-ui/network-threads.d.ts +11 -0
- package/dist/src/components/assistant-ui/thread.d.ts +1 -2
- package/dist/src/components/scrollable-container.d.ts +9 -0
- package/dist/src/components/ui/entry.d.ts +7 -0
- package/dist/src/components/ui/radio-group.d.ts +5 -0
- package/dist/src/domains/agents/components/agent-advanced-settings.d.ts +1 -0
- package/dist/src/domains/agents/components/agent-chat.d.ts +3 -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 +10 -0
- package/dist/src/domains/agents/components/agent-table/columns.d.ts +10 -0
- package/dist/src/domains/agents/components/agent-table/types.d.ts +13 -0
- package/dist/src/domains/agents/components/provider-map-icon.d.ts +12 -0
- package/dist/src/domains/agents/components/runtime-context.d.ts +6 -0
- package/dist/src/domains/agents/context/agent-context.d.ts +16 -0
- package/dist/src/domains/agents/context/agent-working-memory-context.d.ts +21 -0
- package/dist/src/domains/agents/context/index.d.ts +2 -0
- package/dist/src/domains/agents/hooks/use-agent-settings-state.d.ts +10 -0
- package/dist/src/domains/agents/hooks/use-agent-working-memory.d.ts +10 -0
- package/dist/src/domains/agents/index.d.ts +8 -4
- package/dist/src/domains/networks/components/network-table/columns.d.ts +4 -0
- package/dist/src/domains/networks/components/network-table/network-table.d.ts +11 -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-context.d.ts +4 -0
- package/dist/src/domains/networks/v-next/network-chat.d.ts +10 -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 -2
- package/dist/src/domains/tools/components/tool-list.d.ts +12 -0
- package/dist/src/domains/tools/index.d.ts +1 -0
- package/dist/src/domains/workflows/components/workflow-table/columns.d.ts +4 -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 +11 -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 -1
- package/dist/src/domains/workflows/context/workflow-run-context.d.ts +3 -2
- package/dist/src/domains/workflows/index.d.ts +1 -0
- package/dist/src/domains/workflows/utils.d.ts +2 -2
- package/dist/src/domains/workflows/workflow/workflow-default-node.d.ts +6 -2
- package/dist/src/domains/workflows/workflow/workflow-graph-inner.d.ts +4 -2
- package/dist/src/domains/workflows/workflow/workflow-graph.d.ts +4 -2
- package/dist/src/domains/workflows/workflow/workflow-input-data.d.ts +10 -0
- package/dist/src/domains/workflows/workflow/workflow-nested-graph.d.ts +7 -1
- package/dist/src/domains/workflows/workflow/workflow-nested-node.d.ts +12 -4
- 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 -10
- package/dist/src/ds/components/Button/Button.d.ts +1 -0
- package/dist/src/ds/icons/AmazonIcon.d.ts +3 -0
- package/dist/src/ds/icons/AnthropicChatIcon.d.ts +3 -0
- package/dist/src/ds/icons/AnthropicMessagesIcon.d.ts +3 -0
- package/dist/src/ds/icons/AzureIcon.d.ts +3 -0
- package/dist/src/ds/icons/CohereIcon.d.ts +3 -0
- package/dist/src/ds/icons/GroqIcon.d.ts +3 -0
- package/dist/src/ds/icons/MistralIcon.d.ts +3 -0
- package/dist/src/ds/icons/OpenaiChatIcon.d.ts +3 -0
- package/dist/src/ds/icons/XGroqIcon.d.ts +3 -0
- package/dist/src/ds/tokens/colors.d.ts +1 -0
- package/dist/src/hooks/use-workflow-runs.d.ts +4 -0
- package/dist/src/hooks/use-workflows.d.ts +5 -1
- package/dist/src/index.d.ts +4 -0
- package/dist/src/lib/formatting.d.ts +2 -0
- package/dist/src/lib/framework.d.ts +14 -0
- package/dist/src/services/mastra-runtime-provider.d.ts +1 -1
- package/dist/src/services/network-runtime-provider.d.ts +5 -3
- package/dist/src/services/vnext-message-provider.d.ts +11 -0
- package/dist/src/services/vnext-network-chat-provider.d.ts +18 -0
- package/dist/src/services/vnext-network-runtime-provider.d.ts +10 -0
- package/dist/src/types.d.ts +36 -3
- package/dist/tokens.cjs.js +1 -1
- package/dist/tokens.es.js +1 -1
- package/package.json +21 -19
- 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/domains/agents/agent/agent-chat.d.ts +0 -3
- package/dist/src/domains/agents/agent/context/agent-context.d.ts +0 -19
- package/dist/src/store/agent-store.d.ts +0 -20
- /package/dist/src/components/assistant-ui/{attachment-adapters → attachments}/pdfs-adapter.d.ts +0 -0
- /package/dist/src/components/assistant-ui/{use-has-attachments.d.ts → hooks/use-has-attachments.d.ts} +0 -0
- /package/dist/src/components/assistant-ui/{tool-fallback.d.ts → tools/tool-fallback.d.ts} +0 -0
- /package/dist/src/domains/agents/{agent → components}/agent-evals.d.ts +0 -0
- /package/dist/src/domains/agents/{agent → components}/agent-traces.d.ts +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
interface PdfEntryProps {
|
|
2
|
+
data: string;
|
|
3
|
+
}
|
|
4
|
+
export declare const PdfEntry: ({ data }: PdfEntryProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
interface PdfPreviewDialogProps {
|
|
6
|
+
data: string;
|
|
7
|
+
open: boolean;
|
|
8
|
+
onOpenChange: (open: boolean) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const PdfPreviewDialog: ({ data, open, onOpenChange }: PdfPreviewDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
interface ImageEntryProps {
|
|
12
|
+
src: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const ImageEntry: ({ src }: ImageEntryProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
interface ImagePreviewDialogProps {
|
|
16
|
+
src: string;
|
|
17
|
+
open: boolean;
|
|
18
|
+
onOpenChange: (open: boolean) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare const ImagePreviewDialog: ({ src, open, onOpenChange }: ImagePreviewDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
interface TxtEntryProps {
|
|
22
|
+
data: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const TxtEntry: ({ data }: TxtEntryProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
interface TxtPreviewDialogProps {
|
|
26
|
+
data: string;
|
|
27
|
+
open: boolean;
|
|
28
|
+
onOpenChange: (open: boolean) => void;
|
|
29
|
+
}
|
|
30
|
+
export declare const TxtPreviewDialog: ({ data, open, onOpenChange }: TxtPreviewDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useAttachmentSrc: () => string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useFileSrc: (file: File | undefined) => string | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ToolCallContentPartComponent } from '@assistant-ui/react';
|
|
2
|
+
|
|
3
|
+
export interface AssistantMessageProps {
|
|
4
|
+
ToolFallback?: ToolCallContentPartComponent;
|
|
5
|
+
}
|
|
6
|
+
export declare const AssistantMessage: ({ ToolFallback: ToolFallbackCustom }: AssistantMessageProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface InMessageAttachmentProps {
|
|
2
|
+
type: string;
|
|
3
|
+
contentType?: string;
|
|
4
|
+
nameSlot: React.ReactNode;
|
|
5
|
+
src?: string;
|
|
6
|
+
data?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const UserMessageAttachments: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const UserMessage: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ToolCallContentPartComponent } from '@assistant-ui/react';
|
|
2
|
+
|
|
3
|
+
export interface ThreadProps {
|
|
4
|
+
ToolFallback?: ToolCallContentPartComponent;
|
|
5
|
+
networkName?: string;
|
|
6
|
+
hasMemory?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const NetworkThread: ({ ToolFallback, networkName, hasMemory }: ThreadProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export interface ThreadWelcomeProps {
|
|
10
|
+
networkName?: string;
|
|
11
|
+
}
|
|
@@ -4,9 +4,8 @@ export interface ThreadProps {
|
|
|
4
4
|
ToolFallback?: ToolCallContentPartComponent;
|
|
5
5
|
agentName?: string;
|
|
6
6
|
hasMemory?: boolean;
|
|
7
|
-
showFileSupport?: boolean;
|
|
8
7
|
}
|
|
9
|
-
export declare const Thread: ({ ToolFallback, agentName, hasMemory
|
|
8
|
+
export declare const Thread: ({ ToolFallback, agentName, hasMemory }: ThreadProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export interface ThreadWelcomeProps {
|
|
11
10
|
agentName?: string;
|
|
12
11
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from '../../node_modules/@types/react';
|
|
2
|
+
|
|
3
|
+
export type ScrollableContainerProps = {
|
|
4
|
+
className?: string;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
scrollSpeed?: number;
|
|
7
|
+
scrollIntervalTime?: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const ScrollableContainer: ({ className, children, scrollSpeed, scrollIntervalTime, }: ScrollableContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
export { RadioGroup, RadioGroupItem };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AgentAdvancedSettings: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AgentSettings: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GetAgentResponse } from '@mastra/client-js';
|
|
2
|
+
|
|
3
|
+
export interface AgentsTableProps {
|
|
4
|
+
agents: Record<string, GetAgentResponse>;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
computeLink: (agentId: string) => string;
|
|
7
|
+
}
|
|
8
|
+
export declare function AgentsTable({ agents, isLoading, computeLink }: AgentsTableProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const AgentsTableSkeleton: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const EmptyAgentsTable: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
2
|
+
import { AgentTableData } from './types';
|
|
3
|
+
|
|
4
|
+
export type AgentTableColumn = {
|
|
5
|
+
repoUrl: string;
|
|
6
|
+
executedAt: Date | null;
|
|
7
|
+
modelId: string;
|
|
8
|
+
link: string;
|
|
9
|
+
} & AgentTableData;
|
|
10
|
+
export declare const columns: ColumnDef<AgentTableColumn>[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GetToolResponse } from '@mastra/client-js';
|
|
2
|
+
|
|
3
|
+
export type AgentTableData = {
|
|
4
|
+
branch?: string;
|
|
5
|
+
executedAt?: Date;
|
|
6
|
+
modelId: string;
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
provider: string;
|
|
10
|
+
instructions: string;
|
|
11
|
+
tools?: Record<string, GetToolResponse>;
|
|
12
|
+
link: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const providerMapToIcon: {
|
|
2
|
+
'openai.chat': import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
'anthropic.chat': import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
'anthropic.messages': import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
AZURE: import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
AMAZON: import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
GOOGLE: import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
COHERE: import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
GROQ: import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
X_GROK: import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
MISTRAL: import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReactNode } from '../../../../node_modules/@types/react';
|
|
2
|
+
|
|
3
|
+
export declare const RuntimeContext: () => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const RuntimeContextWrapper: ({ children }: {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from '../../../../node_modules/@types/react';
|
|
2
|
+
import { AgentSettingsType as AgentSettings } from '../../../types';
|
|
3
|
+
|
|
4
|
+
type AgentContextType = {
|
|
5
|
+
settings?: AgentSettings;
|
|
6
|
+
setSettings: (settings: AgentSettings) => void;
|
|
7
|
+
resetAll: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const AgentSettingsContext: import('../../../../node_modules/@types/react').Context<AgentContextType>;
|
|
10
|
+
export interface AgentSettingsProviderProps {
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
agentId: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function AgentSettingsProvider({ children, agentId }: AgentSettingsProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const useAgentSettings: () => AgentContextType;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode } from '../../../../node_modules/@types/react';
|
|
2
|
+
|
|
3
|
+
type AgentWorkingMemoryContextType = {
|
|
4
|
+
threadExists: boolean;
|
|
5
|
+
workingMemoryData: string | null;
|
|
6
|
+
workingMemorySource: 'thread' | 'resource';
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
isUpdating: boolean;
|
|
9
|
+
updateWorkingMemory: (newMemory: string) => Promise<void>;
|
|
10
|
+
refetch: () => Promise<void>;
|
|
11
|
+
};
|
|
12
|
+
export declare const WorkingMemoryContext: import('../../../../node_modules/@types/react').Context<AgentWorkingMemoryContextType>;
|
|
13
|
+
export interface AgentWorkingMemoryProviderProps {
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
agentId: string;
|
|
16
|
+
threadId: string;
|
|
17
|
+
resourceId: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function WorkingMemoryProvider({ agentId, threadId, resourceId, children }: AgentWorkingMemoryProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function useWorkingMemory(): AgentWorkingMemoryContextType;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AgentSettingsType as AgentSettings } from '../../../types';
|
|
2
|
+
|
|
3
|
+
export interface AgentSettingsStateProps {
|
|
4
|
+
agentId: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function useAgentSettingsState({ agentId }: AgentSettingsStateProps): {
|
|
7
|
+
settings: AgentSettings | undefined;
|
|
8
|
+
setSettings: (settingsValue: AgentSettings) => void;
|
|
9
|
+
resetAll: () => void;
|
|
10
|
+
};
|
|
@@ -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,8 @@
|
|
|
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 './components/agent-traces';
|
|
4
|
+
export * from './context';
|
|
5
|
+
export * from './components/agent-settings';
|
|
6
|
+
export * from './components/agent-table/agent-table';
|
|
7
|
+
export * from './components/runtime-context';
|
|
8
|
+
export * from './components/provider-map-icon';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GetNetworkResponse, GetVNextNetworkResponse } from '@mastra/client-js';
|
|
2
|
+
|
|
3
|
+
export interface NetworkTableProps {
|
|
4
|
+
legacyNetworks: GetNetworkResponse[];
|
|
5
|
+
networks: GetVNextNetworkResponse[];
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
computeLink: (networkId: string, isVNext: boolean) => string;
|
|
8
|
+
}
|
|
9
|
+
export declare const NetworkTable: ({ legacyNetworks, networks, isLoading, computeLink }: NetworkTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const NetworkTableEmpty: () => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const NetworkTableSkeleton: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,6 +5,10 @@ type NetworkContextType = {
|
|
|
5
5
|
modelSettings: ModelSettings;
|
|
6
6
|
setModelSettings: React.Dispatch<React.SetStateAction<ModelSettings>>;
|
|
7
7
|
resetModelSettings: () => void;
|
|
8
|
+
chatWithLoop: boolean;
|
|
9
|
+
setChatWithLoop: React.Dispatch<React.SetStateAction<boolean>>;
|
|
10
|
+
maxIterations: number | undefined;
|
|
11
|
+
setMaxIterations: React.Dispatch<React.SetStateAction<number | undefined>>;
|
|
8
12
|
};
|
|
9
13
|
export declare const NetworkContext: import('../../../node_modules/@types/react').Context<NetworkContextType>;
|
|
10
14
|
export declare function NetworkProvider({ children }: {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Message } from '../../../types';
|
|
2
|
+
|
|
3
|
+
export declare const VNextNetworkChat: ({ networkId, networkName, threadId, initialMessages, memory, refreshThreadList, }: {
|
|
4
|
+
networkId: string;
|
|
5
|
+
networkName: string;
|
|
6
|
+
threadId: string;
|
|
7
|
+
initialMessages?: Message[];
|
|
8
|
+
memory?: boolean;
|
|
9
|
+
refreshThreadList?: () => void;
|
|
10
|
+
}) => 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,6 @@
|
|
|
1
1
|
import { ToolCallContentPartComponent } from '@assistant-ui/react';
|
|
2
|
-
import { FC } from '
|
|
2
|
+
import { FC } from '../../../../node_modules/@types/react';
|
|
3
3
|
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const NextAssistantMessage: FC<{
|
|
5
5
|
ToolFallback?: ToolCallContentPartComponent;
|
|
6
6
|
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GetAgentResponse, GetToolResponse } from '@mastra/client-js';
|
|
2
|
+
|
|
3
|
+
export interface ToolListProps {
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
tools: Record<string, GetToolResponse>;
|
|
6
|
+
agents: Record<string, GetAgentResponse>;
|
|
7
|
+
computeLink: (toolId: string, agentId?: string) => string;
|
|
8
|
+
computeAgentLink: (toolId: string, agentId: string) => string;
|
|
9
|
+
}
|
|
10
|
+
export declare const ToolList: ({ tools, agents, isLoading, computeLink, computeAgentLink }: ToolListProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const ToolListSkeleton: () => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const ToolListEmpty: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/tool-list';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GetLegacyWorkflowResponse, GetWorkflowResponse } from '@mastra/client-js';
|
|
2
|
+
|
|
3
|
+
export interface WorkflowTableProps {
|
|
4
|
+
workflows?: Record<string, GetWorkflowResponse>;
|
|
5
|
+
legacyWorkflows?: Record<string, GetLegacyWorkflowResponse>;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
computeLink: (agentId: string) => string;
|
|
8
|
+
}
|
|
9
|
+
export declare function WorkflowTable({ workflows, legacyWorkflows, isLoading, computeLink }: WorkflowTableProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const WorkflowTableSkeleton: () => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
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,4 +1,5 @@
|
|
|
1
1
|
import { SerializedStepFlowEntry } from '@mastra/core/workflows';
|
|
2
|
+
import { WorkflowSendEventFormProps } from '../workflow/workflow-run-event-form';
|
|
2
3
|
|
|
3
4
|
type WorkflowNestedGraphContextType = {
|
|
4
5
|
showNestedGraph: ({ label, stepGraph, fullStep, }: {
|
|
@@ -9,7 +10,12 @@ type WorkflowNestedGraphContextType = {
|
|
|
9
10
|
closeNestedGraph: () => void;
|
|
10
11
|
};
|
|
11
12
|
export declare const WorkflowNestedGraphContext: import('../../../../node_modules/@types/react').Context<WorkflowNestedGraphContextType>;
|
|
12
|
-
export declare function WorkflowNestedGraphProvider({ children }: {
|
|
13
|
+
export declare function WorkflowNestedGraphProvider({ children, onShowTrace, onSendEvent, }: {
|
|
13
14
|
children: React.ReactNode;
|
|
15
|
+
onShowTrace?: ({ runId, stepName }: {
|
|
16
|
+
runId: string;
|
|
17
|
+
stepName: string;
|
|
18
|
+
}) => void;
|
|
19
|
+
onSendEvent?: WorkflowSendEventFormProps['onSendEvent'];
|
|
14
20
|
}): import("react/jsx-runtime").JSX.Element;
|
|
15
21
|
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { ExtendedLegacyWorkflowRunResult
|
|
1
|
+
import { ExtendedLegacyWorkflowRunResult } from '../../../hooks/use-workflows';
|
|
2
2
|
import { WorkflowRunState } from '@mastra/core';
|
|
3
|
+
import { WorkflowWatchResult } from '@mastra/client-js';
|
|
3
4
|
|
|
4
5
|
type WorkflowRunContextType = {
|
|
5
6
|
legacyResult: ExtendedLegacyWorkflowRunResult | null;
|
|
6
7
|
setLegacyResult: React.Dispatch<React.SetStateAction<any>>;
|
|
7
|
-
result:
|
|
8
|
+
result: WorkflowWatchResult | null;
|
|
8
9
|
setResult: React.Dispatch<React.SetStateAction<any>>;
|
|
9
10
|
payload: any;
|
|
10
11
|
setPayload: React.Dispatch<React.SetStateAction<any>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { WorkflowRunState } from '@mastra/core/workflows';
|
|
2
|
-
import {
|
|
2
|
+
import { WorkflowWatchResult } from '@mastra/client-js';
|
|
3
3
|
|
|
4
|
-
export declare function convertWorkflowRunStateToWatchResult(runState: WorkflowRunState):
|
|
4
|
+
export declare function convertWorkflowRunStateToWatchResult(runState: WorkflowRunState): WorkflowWatchResult;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { NodeProps, Node } from '@xyflow/react';
|
|
2
|
+
import { WorkflowSendEventFormProps } from './workflow-run-event-form';
|
|
2
3
|
|
|
3
4
|
export type DefaultNode = Node<{
|
|
4
5
|
label: string;
|
|
@@ -6,13 +7,16 @@ export type DefaultNode = Node<{
|
|
|
6
7
|
withoutTopHandle?: boolean;
|
|
7
8
|
withoutBottomHandle?: boolean;
|
|
8
9
|
mapConfig?: string;
|
|
10
|
+
event?: string;
|
|
11
|
+
duration?: number;
|
|
12
|
+
date?: Date;
|
|
9
13
|
}, 'default-node'>;
|
|
10
14
|
export interface WorkflowDefaultNodeProps {
|
|
11
|
-
data: DefaultNode['data'];
|
|
12
15
|
onShowTrace?: ({ runId, stepName }: {
|
|
13
16
|
runId: string;
|
|
14
17
|
stepName: string;
|
|
15
18
|
}) => void;
|
|
19
|
+
onSendEvent?: WorkflowSendEventFormProps['onSendEvent'];
|
|
16
20
|
parentWorkflowName?: string;
|
|
17
21
|
}
|
|
18
|
-
export declare function WorkflowDefaultNode({ data, onShowTrace, parentWorkflowName, }: NodeProps<DefaultNode> & WorkflowDefaultNodeProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare function WorkflowDefaultNode({ data, onShowTrace, parentWorkflowName, onSendEvent, }: NodeProps<DefaultNode> & WorkflowDefaultNodeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { GetWorkflowResponse } from '@mastra/client-js';
|
|
2
|
+
import { WorkflowSendEventFormProps } from './workflow-run-event-form';
|
|
2
3
|
|
|
3
4
|
export interface WorkflowGraphInnerProps {
|
|
4
5
|
workflow: {
|
|
5
6
|
stepGraph: GetWorkflowResponse['stepGraph'];
|
|
6
7
|
};
|
|
7
|
-
onShowTrace
|
|
8
|
+
onShowTrace?: ({ runId, stepName }: {
|
|
8
9
|
runId: string;
|
|
9
10
|
stepName: string;
|
|
10
11
|
}) => void;
|
|
12
|
+
onSendEvent?: WorkflowSendEventFormProps['onSendEvent'];
|
|
11
13
|
}
|
|
12
|
-
export declare function WorkflowGraphInner({ workflow, onShowTrace }: WorkflowGraphInnerProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function WorkflowGraphInner({ workflow, onShowTrace, onSendEvent }: WorkflowGraphInnerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { GetWorkflowResponse } from '@mastra/client-js';
|
|
2
|
+
import { WorkflowSendEventFormProps } from './workflow-run-event-form';
|
|
2
3
|
|
|
3
4
|
export interface WorkflowGraphProps {
|
|
4
5
|
workflowId: string;
|
|
5
6
|
isLoading?: boolean;
|
|
6
7
|
workflow?: GetWorkflowResponse;
|
|
7
|
-
onShowTrace
|
|
8
|
+
onShowTrace?: ({ runId, stepName }: {
|
|
8
9
|
runId: string;
|
|
9
10
|
stepName: string;
|
|
10
11
|
}) => void;
|
|
12
|
+
onSendEvent?: WorkflowSendEventFormProps['onSendEvent'];
|
|
11
13
|
}
|
|
12
|
-
export declare function WorkflowGraph({ workflowId, onShowTrace, workflow, isLoading }: WorkflowGraphProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function WorkflowGraph({ workflowId, onShowTrace, workflow, isLoading, onSendEvent }: WorkflowGraphProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ZodSchema } from 'zod';
|
|
2
|
+
|
|
3
|
+
export interface WorkflowInputDataProps {
|
|
4
|
+
schema: ZodSchema;
|
|
5
|
+
defaultValues?: any;
|
|
6
|
+
isSubmitLoading: boolean;
|
|
7
|
+
submitButtonLabel: string;
|
|
8
|
+
onSubmit: (data: any) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const WorkflowInputData: ({ schema, defaultValues, isSubmitLoading, submitButtonLabel, onSubmit, }: WorkflowInputDataProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { SerializedStepFlowEntry } from '@mastra/core/workflows';
|
|
2
|
+
import { WorkflowSendEventFormProps } from './workflow-run-event-form';
|
|
2
3
|
|
|
3
4
|
export interface WorkflowNestedGraphProps {
|
|
4
5
|
stepGraph: SerializedStepFlowEntry[];
|
|
5
6
|
open: boolean;
|
|
6
7
|
workflowName: string;
|
|
8
|
+
onShowTrace?: ({ runId, stepName }: {
|
|
9
|
+
runId: string;
|
|
10
|
+
stepName: string;
|
|
11
|
+
}) => void;
|
|
12
|
+
onSendEvent?: WorkflowSendEventFormProps['onSendEvent'];
|
|
7
13
|
}
|
|
8
|
-
export declare function WorkflowNestedGraph({ stepGraph, open, workflowName }: WorkflowNestedGraphProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function WorkflowNestedGraph({ stepGraph, open, workflowName, onShowTrace, onSendEvent, }: WorkflowNestedGraphProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
import { NodeProps, Node } from '@xyflow/react';
|
|
2
|
-
import {
|
|
2
|
+
import { SerializedStepFlowEntry } from '@mastra/core/workflows';
|
|
3
|
+
import { WorkflowSendEventFormProps } from './workflow-run-event-form';
|
|
3
4
|
|
|
4
5
|
export type NestedNode = Node<{
|
|
5
6
|
label: string;
|
|
6
7
|
description?: string;
|
|
7
8
|
withoutTopHandle?: boolean;
|
|
8
9
|
withoutBottomHandle?: boolean;
|
|
9
|
-
stepGraph:
|
|
10
|
+
stepGraph: SerializedStepFlowEntry[];
|
|
10
11
|
mapConfig?: string;
|
|
12
|
+
event?: string;
|
|
11
13
|
}, 'nested-node'>;
|
|
12
|
-
export
|
|
14
|
+
export interface WorkflowNestedNodeProps {
|
|
15
|
+
onShowTrace?: ({ runId, stepName }: {
|
|
16
|
+
runId: string;
|
|
17
|
+
stepName: string;
|
|
18
|
+
}) => void;
|
|
19
|
+
onSendEvent?: WorkflowSendEventFormProps['onSendEvent'];
|
|
13
20
|
parentWorkflowName?: string;
|
|
14
|
-
}
|
|
21
|
+
}
|
|
22
|
+
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;
|