@mastra/playground-ui 7.0.0-beta.2 → 7.0.0-beta.21
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/CHANGELOG.md +599 -0
- package/dist/index.cjs.js +6788 -4688
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +3 -0
- package/dist/index.es.js +7082 -5003
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/assistant-ui/messages/tripwire-notice.d.ts +6 -0
- package/dist/src/components/assistant-ui/tools/badges/tool-badge.d.ts +2 -1
- package/dist/src/components/assistant-ui/tools/badges/workflow-badge.d.ts +2 -1
- package/dist/src/components/assistant-ui/tooltip-icon-button.d.ts +2 -7
- package/dist/src/components/dynamic-form/index.d.ts +2 -1
- package/dist/src/components/ui/autoform/CustomAutoForm.d.ts +2 -0
- package/dist/src/components/ui/combobox.d.ts +3 -3
- package/dist/src/components/ui/containers/MainContent.d.ts +7 -0
- package/dist/src/components/ui/elements/buttons/combined-buttons.d.ts +6 -0
- package/dist/src/components/ui/elements/buttons/index.d.ts +1 -1
- package/dist/src/components/ui/elements/form-fields/search-field.d.ts +4 -1
- package/dist/src/components/ui/elements/notification/notification.d.ts +3 -1
- package/dist/src/components/ui/elements/side-dialog/side-dialog-top.d.ts +1 -2
- package/dist/src/components/ui/elements/tabs/index.d.ts +4 -1
- package/dist/src/components/ui/elements/tabs/tabs-root.d.ts +1 -1
- package/dist/src/components/ui/elements/tabs/tabs-tab.d.ts +2 -1
- package/dist/src/components/ui/input.d.ts +2 -2
- package/dist/src/components/ui/searchbar.d.ts +2 -1
- package/dist/src/components/ui/text.d.ts +2 -2
- package/dist/src/domains/agents/components/agent-chat.d.ts +2 -1
- package/dist/src/domains/agents/components/agent-combobox.d.ts +1 -3
- package/dist/src/domains/agents/components/agent-entity-header.d.ts +1 -3
- package/dist/src/domains/agents/components/agent-information/agent-information.d.ts +25 -0
- package/dist/src/domains/agents/components/agent-layout.d.ts +7 -0
- package/dist/src/domains/agents/components/agent-metadata/agent-metadata-model-list.d.ts +1 -0
- package/dist/src/domains/agents/components/agent-metadata/agent-metadata.d.ts +2 -11
- package/dist/src/domains/agents/components/agent-settings.d.ts +2 -4
- package/dist/src/domains/agents/index.d.ts +3 -0
- package/dist/src/domains/configuration/components/header-list-form.d.ts +10 -0
- package/dist/src/domains/configuration/components/mastra-version-footer.d.ts +17 -0
- package/dist/src/domains/configuration/components/playground-config-guard.d.ts +1 -0
- package/dist/src/domains/configuration/components/studio-config-form.d.ts +5 -0
- package/dist/src/domains/configuration/context/studio-config-context.d.ts +12 -0
- package/dist/src/domains/configuration/hooks/use-mastra-instance-status.d.ts +4 -0
- package/dist/src/domains/configuration/hooks/use-mastra-packages.d.ts +1 -0
- package/dist/src/domains/configuration/hooks/use-package-updates.d.ts +18 -0
- package/dist/src/domains/configuration/index.d.ts +7 -0
- package/dist/src/domains/configuration/types.d.ts +4 -0
- package/dist/src/domains/mcps/components/mcp-server-combobox.d.ts +1 -3
- package/dist/src/domains/memory/hooks/use-memory.d.ts +5 -0
- package/dist/src/domains/observability/components/helpers.d.ts +12 -6
- package/dist/src/domains/observability/components/index.d.ts +1 -1
- package/dist/src/domains/observability/components/shared.d.ts +2 -5
- package/dist/src/domains/observability/components/span-dialog.d.ts +5 -2
- package/dist/src/domains/observability/components/span-score-list.d.ts +1 -1
- package/dist/src/domains/observability/components/span-scoring.d.ts +5 -1
- package/dist/src/domains/observability/components/span-tabs.d.ts +5 -2
- package/dist/src/domains/observability/components/span-type-icon.d.ts +6 -0
- package/dist/src/domains/observability/components/timeline-expand-col.d.ts +13 -0
- package/dist/src/domains/observability/components/timeline-name-col.d.ts +16 -0
- package/dist/src/domains/observability/components/timeline-structure-sign.d.ts +7 -0
- package/dist/src/domains/observability/components/timeline-timing-col.d.ts +12 -0
- package/dist/src/domains/observability/components/trace-dialog.d.ts +4 -1
- package/dist/src/domains/observability/components/trace-span-usage.d.ts +4 -1
- package/dist/src/domains/observability/components/trace-timeline-span.d.ts +6 -1
- package/dist/src/domains/observability/components/trace-timeline-tools.d.ts +12 -0
- package/dist/src/domains/observability/components/trace-timeline.d.ts +5 -1
- package/dist/src/domains/observability/components/traces-list.d.ts +1 -1
- package/dist/src/domains/observability/components/traces-tools.d.ts +10 -1
- package/dist/src/domains/observability/components/tracing-run-options.d.ts +1 -0
- package/dist/src/domains/observability/context/tracing-settings-context.d.ts +19 -0
- package/dist/src/domains/observability/hooks/use-tracing-settings-state.d.ts +11 -0
- package/dist/src/domains/observability/index.d.ts +1 -0
- package/dist/src/domains/observability/types.d.ts +13 -0
- package/dist/src/domains/observability/utils/__tests__/span-utils.test.d.ts +1 -0
- package/dist/src/domains/observability/utils/get-descendant-ids.d.ts +2 -0
- package/dist/src/domains/observability/utils/span-utils.d.ts +9 -0
- package/dist/src/domains/scores/components/score-dialog.d.ts +2 -2
- package/dist/src/domains/scores/components/scorer-combobox.d.ts +1 -3
- package/dist/src/domains/scores/hooks/use-trace-span-scores.d.ts +41 -1
- package/dist/src/domains/templates/template-form.d.ts +2 -1
- package/dist/src/domains/tools/components/tool-combobox.d.ts +1 -3
- package/dist/src/domains/workflows/components/workflow-combobox.d.ts +1 -3
- package/dist/src/domains/workflows/components/workflow-layout.d.ts +7 -0
- package/dist/src/domains/workflows/components/workflow-step-detail.d.ts +4 -0
- package/dist/src/domains/workflows/context/use-current-run.d.ts +15 -0
- package/dist/src/domains/workflows/context/workflow-run-context.d.ts +29 -6
- package/dist/src/domains/workflows/context/workflow-step-detail-context.d.ts +34 -0
- package/dist/src/domains/workflows/hooks/use-workflows-actions.d.ts +12 -1
- package/dist/src/domains/workflows/index.d.ts +2 -0
- package/dist/src/domains/workflows/workflow/workflow-code-dialog-content.d.ts +2 -1
- package/dist/src/domains/workflows/workflow/workflow-default-node.d.ts +2 -1
- package/dist/src/domains/workflows/workflow/workflow-input-data.d.ts +2 -1
- package/dist/src/domains/workflows/workflow/workflow-nested-node.d.ts +2 -1
- package/dist/src/domains/workflows/workflow/workflow-run-options.d.ts +1 -0
- package/dist/src/domains/workflows/workflow/workflow-status.d.ts +8 -1
- package/dist/src/domains/workflows/workflow/workflow-step-action-bar.d.ts +7 -2
- package/dist/src/domains/workflows/workflow/workflow-time-travel-form.d.ts +9 -0
- package/dist/src/domains/workflows/workflow/workflow-trigger.d.ts +5 -2
- package/dist/src/ds/components/Avatar/Avatar.d.ts +5 -3
- package/dist/src/ds/components/Button/Button.d.ts +7 -2
- package/dist/src/ds/components/CodeEditor/code-editor.d.ts +12 -0
- package/dist/src/ds/components/CodeEditor/index.d.ts +1 -0
- package/dist/src/ds/tokens/sizes.d.ts +4 -1
- package/dist/src/hooks/use-agent-messages.d.ts +4 -3
- package/dist/src/hooks/use-workflow-runs.d.ts +223 -2
- package/dist/src/index.d.ts +1 -2
- package/dist/src/lib/resize/collapsible-panel.d.ts +5 -0
- package/dist/src/lib/resize/separator.d.ts +1 -0
- package/dist/src/lib/tanstack-query.d.ts +5 -2
- package/dist/src/types.d.ts +3 -2
- package/dist/tokens.cjs.js +4 -1
- package/dist/tokens.cjs.js.map +1 -1
- package/dist/tokens.es.js +4 -1
- package/dist/tokens.es.js.map +1 -1
- package/package.json +31 -35
- package/dist/src/components/assistant-ui/syntax-highlighter.d.ts +0 -1
- package/dist/src/components/syntax-highlighter.d.ts +0 -5
- package/dist/src/components/ui/avatar.d.ts +0 -6
- package/dist/src/components/ui/badge.d.ts +0 -9
- package/dist/src/components/ui/button.d.ts +0 -16
- package/dist/src/components/ui/calendar.d.ts +0 -8
- package/dist/src/components/ui/card.d.ts +0 -8
- package/dist/src/components/ui/command.d.ts +0 -78
- package/dist/src/components/ui/date-picker.d.ts +0 -23
- package/dist/src/components/ui/elements/buttons/button.d.ts +0 -7
- package/dist/src/components/ui/elements/tabs/tabs.d.ts +0 -24
- package/dist/src/components/ui/form.d.ts +0 -23
- package/dist/src/components/ui/playground-tabs.d.ts +0 -24
- package/dist/src/components/ui/syntax-highlighter.d.ts +0 -7
- package/dist/src/components/ui/table.d.ts +0 -10
- package/dist/src/components/ui/tabs.d.ts +0 -7
- package/dist/src/components/ui/textarea.d.ts +0 -5
- package/dist/src/domains/observability/components/trace-timeline-legend.d.ts +0 -6
- package/dist/src/ds/components/TraceTree/Span.d.ts +0 -32
- package/dist/src/ds/components/TraceTree/Spans.d.ts +0 -5
- package/dist/src/ds/components/TraceTree/Time.d.ts +0 -8
- package/dist/src/ds/components/TraceTree/Trace.d.ts +0 -13
- package/dist/src/ds/components/TraceTree/TraceTree.d.ts +0 -5
- package/dist/src/ds/components/TraceTree/index.d.ts +0 -1
- package/dist/src/ds/components/types.d.ts +0 -4
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TripwireMetadata } from '@mastra/react';
|
|
2
|
+
export interface TripwireNoticeProps {
|
|
3
|
+
reason: string;
|
|
4
|
+
tripwire?: TripwireMetadata;
|
|
5
|
+
}
|
|
6
|
+
export declare const TripwireNotice: ({ reason, tripwire }: TripwireNoticeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,5 +8,6 @@ export interface ToolBadgeProps extends Omit<ToolApprovalButtonsProps, 'toolCall
|
|
|
8
8
|
toolOutput: Array<{
|
|
9
9
|
toolId: string;
|
|
10
10
|
}>;
|
|
11
|
+
suspendPayload?: any;
|
|
11
12
|
}
|
|
12
|
-
export declare const ToolBadge: ({ toolName, args, result, metadata, toolOutput, toolCallId, toolApprovalMetadata, }: ToolBadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const ToolBadge: ({ toolName, args, result, metadata, toolOutput, toolCallId, toolApprovalMetadata, suspendPayload, }: ToolBadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,6 +6,7 @@ export interface WorkflowBadgeProps extends Omit<ToolApprovalButtonsProps, 'tool
|
|
|
6
6
|
result?: any;
|
|
7
7
|
isStreaming?: boolean;
|
|
8
8
|
metadata?: MastraUIMessage['metadata'];
|
|
9
|
+
suspendPayload?: any;
|
|
9
10
|
}
|
|
10
|
-
export declare const WorkflowBadge: ({ result, workflowId, isStreaming, metadata, toolCallId, toolApprovalMetadata, }: WorkflowBadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const WorkflowBadge: ({ result, workflowId, isStreaming, metadata, toolCallId, toolApprovalMetadata, suspendPayload, }: WorkflowBadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export declare const useWorkflowStream: (workflowFullState?: WorkflowRunStreamResult) => void;
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import { ButtonProps } from '
|
|
1
|
+
import { ButtonProps } from '../../ds/components/Button/Button';
|
|
2
2
|
export type TooltipIconButtonProps = ButtonProps & {
|
|
3
3
|
tooltip: string;
|
|
4
4
|
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
5
5
|
};
|
|
6
|
-
export declare const TooltipIconButton: import('../../../node_modules/@types/react').ForwardRefExoticComponent<
|
|
7
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
8
|
-
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
9
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & {
|
|
10
|
-
asChild?: boolean;
|
|
11
|
-
} & {
|
|
6
|
+
export declare const TooltipIconButton: import('../../../node_modules/@types/react').ForwardRefExoticComponent<ButtonProps & {
|
|
12
7
|
tooltip: string;
|
|
13
8
|
side?: "top" | "bottom" | "left" | "right";
|
|
14
9
|
} & import('../../../node_modules/@types/react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -7,6 +7,7 @@ interface DynamicFormProps<T extends z.ZodSchema> {
|
|
|
7
7
|
submitButtonLabel?: string;
|
|
8
8
|
className?: string;
|
|
9
9
|
readOnly?: boolean;
|
|
10
|
+
children?: React.ReactNode;
|
|
10
11
|
}
|
|
11
|
-
export declare function DynamicForm<T extends z.ZodSchema>({ schema, onSubmit, defaultValues, isSubmitLoading, submitButtonLabel, className, readOnly, }: DynamicFormProps<T>): import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
export declare function DynamicForm<T extends z.ZodSchema>({ schema, onSubmit, defaultValues, isSubmitLoading, submitButtonLabel, className, readOnly, children, }: DynamicFormProps<T>): import("react/jsx-runtime").JSX.Element | null;
|
|
12
13
|
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { AutoFormProps } from '@autoform/react';
|
|
2
|
+
export declare function CustomAutoForm<T extends Record<string, any>>({ schema, onSubmit, defaultValues, values, children, uiComponents, formComponents, withSubmit, onFormInit, formProps, }: AutoFormProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ButtonProps as DSButtonProps } from '../../ds/components/Button/Button';
|
|
1
2
|
export type ComboboxOption = {
|
|
2
3
|
label: string;
|
|
3
4
|
value: string;
|
|
@@ -11,7 +12,6 @@ export type ComboboxProps = {
|
|
|
11
12
|
emptyText?: string;
|
|
12
13
|
className?: string;
|
|
13
14
|
disabled?: boolean;
|
|
14
|
-
|
|
15
|
-
contentClassName?: string;
|
|
15
|
+
variant?: DSButtonProps['variant'];
|
|
16
16
|
};
|
|
17
|
-
export declare function Combobox({ options, value, onValueChange, placeholder, searchPlaceholder, emptyText, className, disabled,
|
|
17
|
+
export declare function Combobox({ options, value, onValueChange, placeholder, searchPlaceholder, emptyText, className, disabled, variant, }: ComboboxProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,3 +11,10 @@ export declare function MainContentContent({ children, className, isCentered, is
|
|
|
11
11
|
isDivided?: boolean;
|
|
12
12
|
hasLeftServiceColumn?: boolean;
|
|
13
13
|
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export type GetMainContentContentClassNameArgs = {
|
|
15
|
+
isCentered: boolean;
|
|
16
|
+
isDivided: boolean;
|
|
17
|
+
hasLeftServiceColumn: boolean;
|
|
18
|
+
className?: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const getMainContentContentClassName: ({ isCentered, isDivided, hasLeftServiceColumn, className, }: GetMainContentContentClassNameArgs) => string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as React } from '../../../../../node_modules/@types/react';
|
|
2
|
+
export interface CombinedButtonsProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const CombinedButtons: ({ className, children }: CombinedButtonsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './combined-buttons';
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import { InputFieldProps } from '..';
|
|
2
|
-
export
|
|
2
|
+
export type SearchFieldProps = InputFieldProps & {
|
|
3
|
+
onReset?: () => void;
|
|
4
|
+
};
|
|
5
|
+
export declare function SearchField({ onReset, ...props }: SearchFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,6 +4,8 @@ type Notification = {
|
|
|
4
4
|
isVisible?: boolean;
|
|
5
5
|
autoDismiss?: boolean;
|
|
6
6
|
dismissTime?: number;
|
|
7
|
+
dismissible?: boolean;
|
|
8
|
+
type?: 'info' | 'error';
|
|
7
9
|
};
|
|
8
|
-
export declare function Notification({ children, className, isVisible, autoDismiss, dismissTime }: Notification): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
export declare function Notification({ children, className, isVisible, autoDismiss, dismissTime, dismissible, type, }: Notification): import("react/jsx-runtime").JSX.Element | null;
|
|
9
11
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export type SideDialogTopProps = {
|
|
2
2
|
children?: React.ReactNode;
|
|
3
|
-
withTopSeparator?: boolean;
|
|
4
3
|
className?: string;
|
|
5
4
|
};
|
|
6
|
-
export declare function SideDialogTop({ children,
|
|
5
|
+
export declare function SideDialogTop({ children, className }: SideDialogTopProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,5 +5,5 @@ type TabsRootProps<T extends string> = {
|
|
|
5
5
|
onValueChange?: (value: T) => void;
|
|
6
6
|
className?: string;
|
|
7
7
|
};
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const Tabs: <T extends string>({ children, defaultTab, value, onValueChange, className }: TabsRootProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -2,7 +2,8 @@ type TabProps = {
|
|
|
2
2
|
children: React.ReactNode;
|
|
3
3
|
value: string;
|
|
4
4
|
onClick?: () => void;
|
|
5
|
+
onClose?: () => void;
|
|
5
6
|
className?: string;
|
|
6
7
|
};
|
|
7
|
-
export declare const Tab: ({ children, value, onClick, className }: TabProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const Tab: ({ children, value, onClick, onClose, className }: TabProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const inputVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "
|
|
5
|
-
customSize?: "
|
|
4
|
+
variant?: "default" | "unstyled" | "filled" | null | undefined;
|
|
5
|
+
customSize?: "lg" | "default" | "sm" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {
|
|
8
8
|
testId?: string;
|
|
@@ -2,8 +2,9 @@ export interface SearchbarProps {
|
|
|
2
2
|
onSearch: (search: string) => void;
|
|
3
3
|
label: string;
|
|
4
4
|
placeholder: string;
|
|
5
|
+
debounceMs?: number;
|
|
5
6
|
}
|
|
6
|
-
export declare const Searchbar: ({ onSearch, label, placeholder }: SearchbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const Searchbar: ({ onSearch, label, placeholder, debounceMs }: SearchbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export declare const SearchbarWrapper: ({ children }: {
|
|
8
9
|
children: React.ReactNode;
|
|
9
10
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { default as React } from '../../../node_modules/@types/react';
|
|
3
3
|
declare const textVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
5
|
-
size?: "
|
|
4
|
+
variant?: "primary" | "secondary" | null | undefined;
|
|
5
|
+
size?: "md" | "lg" | "default" | "sm" | "xs" | "xl" | "2xl" | null | undefined;
|
|
6
6
|
weight?: "bold" | "medium" | "normal" | "semibold" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
export interface TextProps extends React.HTMLAttributes<HTMLParagraphElement | HTMLSpanElement | HTMLDivElement>, VariantProps<typeof textVariants> {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ChatProps } from '../../../types';
|
|
2
|
-
export declare const AgentChat: ({ agentId, agentName, threadId, memory, refreshThreadList, modelVersion, modelList, messageId, }: Omit<ChatProps, "initialMessages" | "initialLegacyMessages"> & {
|
|
2
|
+
export declare const AgentChat: ({ agentId, agentName, threadId, memory, refreshThreadList, modelVersion, modelList, messageId, isNewThread, }: Omit<ChatProps, "initialMessages" | "initialLegacyMessages"> & {
|
|
3
3
|
messageId?: string;
|
|
4
|
+
isNewThread?: boolean;
|
|
4
5
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -6,7 +6,5 @@ export interface AgentComboboxProps {
|
|
|
6
6
|
emptyText?: string;
|
|
7
7
|
className?: string;
|
|
8
8
|
disabled?: boolean;
|
|
9
|
-
buttonClassName?: string;
|
|
10
|
-
contentClassName?: string;
|
|
11
9
|
}
|
|
12
|
-
export declare function AgentCombobox({ value, onValueChange, placeholder, searchPlaceholder, emptyText, className, disabled,
|
|
10
|
+
export declare function AgentCombobox({ value, onValueChange, placeholder, searchPlaceholder, emptyText, className, disabled, }: AgentComboboxProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export interface AgentEntityHeaderProps {
|
|
2
2
|
agentId: string;
|
|
3
|
-
isLoading: boolean;
|
|
4
|
-
agentName: string;
|
|
5
3
|
}
|
|
6
|
-
export declare const AgentEntityHeader: ({ agentId
|
|
4
|
+
export declare const AgentEntityHeader: ({ agentId }: AgentEntityHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,3 +3,28 @@ export interface AgentInformationProps {
|
|
|
3
3
|
threadId: string;
|
|
4
4
|
}
|
|
5
5
|
export declare function AgentInformation({ agentId, threadId }: AgentInformationProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export interface UseAgentInformationTabArgs {
|
|
7
|
+
isMemoryLoading: boolean;
|
|
8
|
+
hasMemory: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const useAgentInformationTab: ({ isMemoryLoading, hasMemory }: UseAgentInformationTabArgs) => {
|
|
11
|
+
selectedTab: string;
|
|
12
|
+
handleTabChange: (value: string) => void;
|
|
13
|
+
};
|
|
14
|
+
export interface UseAgentInformationSettingsArgs {
|
|
15
|
+
modelId: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const useAgentInformationSettings: ({ modelId }: UseAgentInformationSettingsArgs) => {
|
|
18
|
+
settings: import('../../../..').AgentSettingsType | undefined;
|
|
19
|
+
setSettings: (settings: import('../../../..').AgentSettingsType) => void;
|
|
20
|
+
};
|
|
21
|
+
export interface AgentInformationLayoutProps {
|
|
22
|
+
children: React.ReactNode;
|
|
23
|
+
agentId?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const AgentInformationLayout: ({ children, agentId }: AgentInformationLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export interface AgentInformationTabLayoutProps {
|
|
27
|
+
children: React.ReactNode;
|
|
28
|
+
agentId: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const AgentInformationTabLayout: ({ children, agentId }: AgentInformationTabLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface AgentLayoutProps {
|
|
2
|
+
agentId: string;
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
leftSlot?: React.ReactNode;
|
|
5
|
+
rightSlot?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const AgentLayout: ({ agentId, children, leftSlot, rightSlot }: AgentLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AgentMetadataModelSwitcherProps } from './agent-metadata-model-switcher';
|
|
3
|
-
import { AgentMetadataModelListProps } from './agent-metadata-model-list';
|
|
1
|
+
import { GetToolResponse, GetWorkflowResponse } from '@mastra/client-js';
|
|
4
2
|
export interface AgentMetadataProps {
|
|
5
3
|
agentId: string;
|
|
6
|
-
agent: GetAgentResponse;
|
|
7
|
-
hasMemoryEnabled: boolean;
|
|
8
|
-
modelVersion: string;
|
|
9
|
-
updateModel: AgentMetadataModelSwitcherProps['updateModel'];
|
|
10
|
-
resetModel: AgentMetadataModelSwitcherProps['resetModel'];
|
|
11
|
-
updateModelInModelList: AgentMetadataModelListProps['updateModelInModelList'];
|
|
12
|
-
reorderModelList: AgentMetadataModelListProps['reorderModelList'];
|
|
13
4
|
}
|
|
14
5
|
export interface AgentMetadataNetworkListProps {
|
|
15
6
|
agents: {
|
|
@@ -18,7 +9,7 @@ export interface AgentMetadataNetworkListProps {
|
|
|
18
9
|
}[];
|
|
19
10
|
}
|
|
20
11
|
export declare const AgentMetadataNetworkList: ({ agents }: AgentMetadataNetworkListProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export declare const AgentMetadata: ({ agentId
|
|
12
|
+
export declare const AgentMetadata: ({ agentId }: AgentMetadataProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
13
|
export interface AgentMetadataToolListProps {
|
|
23
14
|
tools: GetToolResponse[];
|
|
24
15
|
agentId: string;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export interface AgentSettingsProps {
|
|
2
|
-
|
|
3
|
-
hasMemory?: boolean;
|
|
4
|
-
hasSubAgents?: boolean;
|
|
2
|
+
agentId: string;
|
|
5
3
|
}
|
|
6
|
-
export declare const AgentSettings: ({
|
|
4
|
+
export declare const AgentSettings: ({ agentId }: AgentSettingsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,3 +14,6 @@ export * from './hooks/use-agent';
|
|
|
14
14
|
export * from './hooks/use-execute-agent-tool';
|
|
15
15
|
export * from './components/AgentToolPanel';
|
|
16
16
|
export * from './components/agent-information/agent-information';
|
|
17
|
+
export * from './components/agent-entity-header';
|
|
18
|
+
export * from './components/agent-information/agent-memory';
|
|
19
|
+
export * from './components/agent-layout';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type HeaderListFormItem = {
|
|
2
|
+
name: string;
|
|
3
|
+
value: string;
|
|
4
|
+
};
|
|
5
|
+
export interface HeaderListFormProps {
|
|
6
|
+
headers: Array<HeaderListFormItem>;
|
|
7
|
+
onAddHeader: (header: HeaderListFormItem) => void;
|
|
8
|
+
onRemoveHeader: (index: number) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const HeaderListForm: ({ headers, onAddHeader, onRemoveHeader }: HeaderListFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PackageUpdateInfo } from '../hooks/use-package-updates';
|
|
2
|
+
export interface MastraVersionFooterProps {
|
|
3
|
+
collapsed?: boolean;
|
|
4
|
+
}
|
|
5
|
+
type PackageManager = 'pnpm' | 'npm' | 'yarn' | 'bun';
|
|
6
|
+
export declare const MastraVersionFooter: ({ collapsed }: MastraVersionFooterProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export interface PackagesModalContentProps {
|
|
8
|
+
packages: PackageUpdateInfo[];
|
|
9
|
+
isLoadingUpdates: boolean;
|
|
10
|
+
outdatedCount: number;
|
|
11
|
+
deprecatedCount: number;
|
|
12
|
+
updateCommand: string | null;
|
|
13
|
+
packageManager: PackageManager;
|
|
14
|
+
onPackageManagerChange: (pm: PackageManager) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const MastraPackagesInfo: ({ collapsed }: MastraVersionFooterProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PlaygroundConfigGuard: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StudioConfig } from '../types';
|
|
2
|
+
export type StudioConfigContextType = StudioConfig & {
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
setConfig: (partialNewConfig: Partial<StudioConfig>) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const StudioConfigContext: import('../../../../node_modules/@types/react').Context<StudioConfigContextType>;
|
|
7
|
+
export declare const useStudioConfig: () => StudioConfigContextType;
|
|
8
|
+
export interface StudioConfigProviderProps {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
endpoint?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const StudioConfigProvider: ({ children, endpoint }: StudioConfigProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useMastraPackages: () => import('@tanstack/react-query').UseQueryResult<import('@mastra/client-js').GetSystemPackagesResponse, Error>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface PackageInfo {
|
|
2
|
+
name: string;
|
|
3
|
+
version: string;
|
|
4
|
+
}
|
|
5
|
+
export interface PackageUpdateInfo extends PackageInfo {
|
|
6
|
+
latestVersion: string | null;
|
|
7
|
+
isOutdated: boolean;
|
|
8
|
+
isDeprecated: boolean;
|
|
9
|
+
prereleaseTag: string | null;
|
|
10
|
+
targetPrereleaseTag: string | null;
|
|
11
|
+
deprecationMessage?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function usePackageUpdates(packages: PackageInfo[]): {
|
|
14
|
+
packages: PackageUpdateInfo[];
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
outdatedCount: number;
|
|
17
|
+
deprecatedCount: number;
|
|
18
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './context/studio-config-context';
|
|
2
|
+
export * from './components/studio-config-form';
|
|
3
|
+
export * from './components/mastra-version-footer';
|
|
4
|
+
export * from './types';
|
|
5
|
+
export * from './components/playground-config-guard';
|
|
6
|
+
export * from './hooks/use-mastra-packages';
|
|
7
|
+
export * from './hooks/use-package-updates';
|
|
@@ -6,7 +6,5 @@ export interface MCPServerComboboxProps {
|
|
|
6
6
|
emptyText?: string;
|
|
7
7
|
className?: string;
|
|
8
8
|
disabled?: boolean;
|
|
9
|
-
buttonClassName?: string;
|
|
10
|
-
contentClassName?: string;
|
|
11
9
|
}
|
|
12
|
-
export declare function MCPServerCombobox({ value, onValueChange, placeholder, searchPlaceholder, emptyText, className, disabled,
|
|
10
|
+
export declare function MCPServerCombobox({ value, onValueChange, placeholder, searchPlaceholder, emptyText, className, disabled, }: MCPServerComboboxProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -22,3 +22,8 @@ export declare const useMemorySearch: ({ agentId, resourceId, threadId, }: {
|
|
|
22
22
|
searchQuery: string;
|
|
23
23
|
memoryConfig?: MemorySearchParams;
|
|
24
24
|
}, unknown>;
|
|
25
|
+
export declare const useCloneThread: () => import('@tanstack/react-query').UseMutationResult<import('@mastra/client-js').CloneMemoryThreadResponse, Error, {
|
|
26
|
+
threadId: string;
|
|
27
|
+
agentId: string;
|
|
28
|
+
title?: string;
|
|
29
|
+
}, unknown>;
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import { SpanRecord } from '@mastra/core/storage';
|
|
2
|
-
export declare function useTraceInfo(trace: SpanRecord | undefined): {
|
|
2
|
+
export declare function useTraceInfo(trace: SpanRecord | undefined): ({
|
|
3
3
|
key: string;
|
|
4
4
|
label: string;
|
|
5
|
-
value:
|
|
6
|
-
|
|
5
|
+
value: {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
path: string | undefined;
|
|
9
|
+
}[];
|
|
10
|
+
} | {
|
|
11
|
+
key: string;
|
|
12
|
+
label: string;
|
|
13
|
+
value: string;
|
|
14
|
+
})[];
|
|
7
15
|
type getSpanInfoProps = {
|
|
8
16
|
span: SpanRecord | undefined;
|
|
9
|
-
withTraceId?: boolean;
|
|
10
|
-
withSpanId?: boolean;
|
|
11
17
|
};
|
|
12
|
-
export declare function getSpanInfo({ span
|
|
18
|
+
export declare function getSpanInfo({ span }: getSpanInfoProps): {
|
|
13
19
|
key: string;
|
|
14
20
|
label: string;
|
|
15
21
|
value: string;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
+
import { UISpanStyle } from '../types';
|
|
1
2
|
export declare const spanTypePrefixes: string[];
|
|
2
|
-
export declare function getSpanTypeUi(type: string):
|
|
3
|
-
icon: React.ReactNode;
|
|
4
|
-
color: string;
|
|
5
|
-
label: string;
|
|
6
|
-
} | null;
|
|
3
|
+
export declare function getSpanTypeUi(type: string): UISpanStyle | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { KeyValueListItemData } from '../../../components/ui/elements';
|
|
2
2
|
import { SpanRecord } from '@mastra/core/storage';
|
|
3
|
-
import { ListScoresResponse } from '@mastra/
|
|
3
|
+
import { ListScoresResponse } from '@mastra/core/evals';
|
|
4
|
+
import { GetScorerResponse } from '@mastra/client-js';
|
|
4
5
|
type SpanDialogProps = {
|
|
5
6
|
trace: SpanRecord;
|
|
6
7
|
span?: SpanRecord;
|
|
@@ -16,6 +17,8 @@ type SpanDialogProps = {
|
|
|
16
17
|
defaultActiveTab?: string;
|
|
17
18
|
initialScoreId?: string;
|
|
18
19
|
computeTraceLink: (traceId: string, spanId?: string) => string;
|
|
20
|
+
scorers?: Record<string, GetScorerResponse>;
|
|
21
|
+
isLoadingScorers?: boolean;
|
|
19
22
|
};
|
|
20
|
-
export declare function SpanDialog({ trace, span, spanScoresData, onSpanScoresPageChange, isLoadingSpanScoresData, isOpen, onClose, onNext, onPrevious, onViewToggle, spanInfo, defaultActiveTab, initialScoreId, computeTraceLink, }: SpanDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare function SpanDialog({ trace, span, spanScoresData, onSpanScoresPageChange, isLoadingSpanScoresData, isOpen, onClose, onNext, onPrevious, onViewToggle, spanInfo, defaultActiveTab, initialScoreId, computeTraceLink, scorers, isLoadingScorers, }: SpanDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
21
24
|
export {};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import { GetScorerResponse } from '@mastra/client-js';
|
|
1
2
|
export interface SpanScoringProps {
|
|
2
3
|
traceId?: string;
|
|
3
4
|
spanId?: string;
|
|
4
5
|
entityType?: string;
|
|
6
|
+
isTopLevelSpan?: boolean;
|
|
7
|
+
scorers?: Record<string, GetScorerResponse>;
|
|
8
|
+
isLoadingScorers?: boolean;
|
|
5
9
|
}
|
|
6
|
-
export declare const SpanScoring: ({ traceId, spanId, entityType }: SpanScoringProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const SpanScoring: ({ traceId, spanId, entityType, isTopLevelSpan, scorers, isLoadingScorers, }: SpanScoringProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { KeyValueListItemData } from '../../../index';
|
|
2
|
-
import { ListScoresResponse } from '@mastra/
|
|
2
|
+
import { ListScoresResponse } from '@mastra/core/evals';
|
|
3
|
+
import { GetScorerResponse } from '@mastra/client-js';
|
|
3
4
|
import { SpanRecord } from '@mastra/core/storage';
|
|
4
5
|
type SpanTabsProps = {
|
|
5
6
|
trace?: SpanRecord;
|
|
@@ -11,6 +12,8 @@ type SpanTabsProps = {
|
|
|
11
12
|
defaultActiveTab?: string;
|
|
12
13
|
initialScoreId?: string;
|
|
13
14
|
computeTraceLink: (traceId: string, spanId?: string) => string;
|
|
15
|
+
scorers?: Record<string, GetScorerResponse>;
|
|
16
|
+
isLoadingScorers?: boolean;
|
|
14
17
|
};
|
|
15
|
-
export declare function SpanTabs({ trace, span, spanScoresData, onSpanScoresPageChange, isLoadingSpanScoresData, spanInfo, defaultActiveTab, initialScoreId, computeTraceLink, }: SpanTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function SpanTabs({ trace, span, spanScoresData, onSpanScoresPageChange, isLoadingSpanScoresData, spanInfo, defaultActiveTab, initialScoreId, computeTraceLink, scorers, isLoadingScorers, }: SpanTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
16
19
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type TimelineExpandColProps = {
|
|
2
|
+
isSelected?: boolean;
|
|
3
|
+
isFaded?: boolean;
|
|
4
|
+
isExpanded?: boolean;
|
|
5
|
+
toggleChildren?: () => void;
|
|
6
|
+
expandAllDescendants?: () => void;
|
|
7
|
+
expandedSpanIds?: string[];
|
|
8
|
+
totalDescendants?: number;
|
|
9
|
+
allDescendantsExpanded?: boolean;
|
|
10
|
+
numOfChildren?: number;
|
|
11
|
+
};
|
|
12
|
+
export declare function TimelineExpandCol({ isSelected, isFaded, isExpanded, toggleChildren, expandAllDescendants, totalDescendants, allDescendantsExpanded, numOfChildren, }: TimelineExpandColProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UISpan, UISpanStyle } from '../types';
|
|
2
|
+
type TimelineNameColProps = {
|
|
3
|
+
span: UISpan;
|
|
4
|
+
spanUI?: UISpanStyle | null;
|
|
5
|
+
isFaded?: boolean;
|
|
6
|
+
depth?: number;
|
|
7
|
+
onSpanClick?: (id: string) => void;
|
|
8
|
+
selectedSpanId?: string;
|
|
9
|
+
isLastChild?: boolean;
|
|
10
|
+
hasChildren?: boolean;
|
|
11
|
+
isRootSpan?: boolean;
|
|
12
|
+
isExpanded?: boolean;
|
|
13
|
+
toggleChildren?: () => void;
|
|
14
|
+
};
|
|
15
|
+
export declare function TimelineNameCol({ span, spanUI, isFaded, depth, onSpanClick, selectedSpanId, isLastChild, hasChildren, isRootSpan, isExpanded, toggleChildren, }: TimelineNameColProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type TimelineStructureSignProps = {
|
|
2
|
+
isLastChild?: boolean;
|
|
3
|
+
hasChildren?: boolean;
|
|
4
|
+
expanded?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare function TimelineStructureSign({ isLastChild, hasChildren, expanded, }: TimelineStructureSignProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UISpan } from '../types';
|
|
2
|
+
type TimelineTimingColProps = {
|
|
3
|
+
span: UISpan;
|
|
4
|
+
selectedSpanId?: string;
|
|
5
|
+
isFaded?: boolean;
|
|
6
|
+
overallLatency?: number;
|
|
7
|
+
overallStartTime?: string;
|
|
8
|
+
overallEndTime?: string;
|
|
9
|
+
color?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function TimelineTimingCol({ span, selectedSpanId, isFaded, overallLatency, overallStartTime, color, }: TimelineTimingColProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SpanRecord } from '@mastra/core/storage';
|
|
2
|
+
import { GetScorerResponse } from '@mastra/client-js';
|
|
2
3
|
type TraceDialogProps = {
|
|
3
4
|
traceSpans?: SpanRecord[];
|
|
4
5
|
traceId?: string;
|
|
@@ -14,6 +15,8 @@ type TraceDialogProps = {
|
|
|
14
15
|
initialSpanId?: string;
|
|
15
16
|
initialSpanTab?: string;
|
|
16
17
|
initialScoreId?: string;
|
|
18
|
+
scorers?: Record<string, GetScorerResponse>;
|
|
19
|
+
isLoadingScorers?: boolean;
|
|
17
20
|
};
|
|
18
|
-
export declare function TraceDialog({ traceId, traceSpans, traceDetails, isOpen, onClose, onNext, onPrevious, isLoadingSpans,
|
|
21
|
+
export declare function TraceDialog({ traceId, traceSpans, traceDetails, isOpen, onClose, onNext, onPrevious, isLoadingSpans, computeTraceLink, initialSpanId, initialSpanTab, initialScoreId, scorers, isLoadingScorers, }: TraceDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
19
22
|
export {};
|