@mastra/playground-ui 5.1.2-alpha.1 → 5.1.2-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +61 -57
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +62 -60
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/ui/button.d.ts +1 -1
- package/dist/src/components/ui/command.d.ts +2 -2
- package/dist/src/components/ui/resizable.d.ts +1 -1
- package/dist/src/contexts/mastra-client-context.d.ts +9 -0
- package/dist/src/domains/agents/agent/agent-chat.d.ts +1 -1
- package/dist/src/domains/agents/agent/agent-evals.d.ts +1 -2
- package/dist/src/domains/workflows/workflow/legacy-workflow-graph.d.ts +1 -2
- package/dist/src/domains/workflows/workflow/legacy-workflow-trigger.d.ts +1 -2
- package/dist/src/domains/workflows/workflow/workflow-graph.d.ts +1 -2
- package/dist/src/domains/workflows/workflow/workflow-trigger.d.ts +1 -2
- package/dist/src/hooks/use-evals.d.ts +1 -1
- package/dist/src/hooks/use-traces.d.ts +1 -1
- package/dist/src/hooks/use-workflows.d.ts +5 -5
- package/dist/src/index.d.ts +1 -0
- package/dist/src/lib/mastra-client.d.ts +1 -1
- package/dist/src/services/mastra-runtime-provider.d.ts +1 -1
- package/dist/src/services/network-runtime-provider.d.ts +1 -1
- package/dist/src/types.d.ts +0 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare const buttonVariants: (props?: ({
|
|
5
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" |
|
|
5
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
6
6
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -20,7 +20,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
20
20
|
ref?: React.Ref<HTMLInputElement>;
|
|
21
21
|
} & {
|
|
22
22
|
asChild?: boolean;
|
|
23
|
-
}, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "
|
|
23
|
+
}, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "value" | "type" | "onChange"> & {
|
|
24
24
|
value?: string;
|
|
25
25
|
onValueChange?: (search: string) => void;
|
|
26
26
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -64,7 +64,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
64
64
|
ref?: React.Ref<HTMLDivElement>;
|
|
65
65
|
} & {
|
|
66
66
|
asChild?: boolean;
|
|
67
|
-
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "
|
|
67
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "disabled" | "onSelect"> & {
|
|
68
68
|
disabled?: boolean;
|
|
69
69
|
onSelect?: (value: string) => void;
|
|
70
70
|
value?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
2
2
|
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare const ResizablePanel: import('../../../node_modules/@types/react').ForwardRefExoticComponent<Omit<import('../../../node_modules/@types/react').HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLDivElement | HTMLObjectElement | HTMLLinkElement | HTMLFormElement | HTMLSlotElement | HTMLStyleElement | HTMLTitleElement | HTMLDialogElement | HTMLImageElement | HTMLOptionElement | HTMLTableElement |
|
|
3
|
+
declare const ResizablePanel: import('../../../node_modules/@types/react').ForwardRefExoticComponent<Omit<import('../../../node_modules/@types/react').HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLDivElement | HTMLObjectElement | HTMLLinkElement | HTMLMapElement | HTMLFormElement | HTMLSlotElement | HTMLStyleElement | HTMLTitleElement | HTMLDialogElement | HTMLImageElement | HTMLOptionElement | HTMLTableElement | HTMLAnchorElement | HTMLHeadingElement | HTMLInputElement | HTMLLabelElement | HTMLLIElement | HTMLOListElement | HTMLParagraphElement | HTMLSpanElement | HTMLUListElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSourceElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
4
4
|
className?: string | undefined;
|
|
5
5
|
collapsedSize?: number | undefined;
|
|
6
6
|
collapsible?: boolean | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from '../../node_modules/@types/react';
|
|
2
|
+
import { MastraClient } from '@mastra/client-js';
|
|
3
|
+
|
|
4
|
+
export declare const MastraClientProvider: ({ children, baseUrl, headers, }: {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
baseUrl?: string;
|
|
7
|
+
headers?: Record<string, string>;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const useMastraClient: () => MastraClient;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ChatProps } from '../../../types';
|
|
2
2
|
|
|
3
|
-
export declare const AgentChat: ({ agentId, agentName, threadId, initialMessages, memory,
|
|
3
|
+
export declare const AgentChat: ({ agentId, agentName, threadId, initialMessages, memory, refreshThreadList, showFileSupport, }: ChatProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export declare function LegacyWorkflowTrigger({ workflowId,
|
|
1
|
+
export declare function LegacyWorkflowTrigger({ workflowId, setRunId, }: {
|
|
2
2
|
workflowId: string;
|
|
3
|
-
baseUrl: string;
|
|
4
3
|
setRunId?: (runId: string) => void;
|
|
5
4
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
export interface WorkflowGraphProps {
|
|
3
3
|
workflowId: string;
|
|
4
|
-
baseUrl: string;
|
|
5
4
|
onShowTrace: ({ runId, stepName }: {
|
|
6
5
|
runId: string;
|
|
7
6
|
stepName: string;
|
|
8
7
|
}) => void;
|
|
9
8
|
}
|
|
10
|
-
export declare function WorkflowGraph({ workflowId,
|
|
9
|
+
export declare function WorkflowGraph({ workflowId, onShowTrace }: WorkflowGraphProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export declare function WorkflowTrigger({ workflowId,
|
|
1
|
+
export declare function WorkflowTrigger({ workflowId, setRunId }: {
|
|
2
2
|
workflowId: string;
|
|
3
|
-
baseUrl: string;
|
|
4
3
|
setRunId?: (runId: string) => void;
|
|
5
4
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -12,7 +12,7 @@ export type Evals = {
|
|
|
12
12
|
globalRunId: string;
|
|
13
13
|
testInfo?: TestInfo;
|
|
14
14
|
};
|
|
15
|
-
export declare const useEvalsByAgentId: (agentId: string, type: "ci" | "live"
|
|
15
|
+
export declare const useEvalsByAgentId: (agentId: string, type: "ci" | "live") => {
|
|
16
16
|
evals: Evals[];
|
|
17
17
|
isLoading: boolean;
|
|
18
18
|
refetchEvals: (_agentId?: string) => Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RefinedTrace } from '../domains/traces/types';
|
|
2
2
|
|
|
3
|
-
export declare const useTraces: (componentName: string,
|
|
3
|
+
export declare const useTraces: (componentName: string, isWorkflow?: boolean) => {
|
|
4
4
|
traces: RefinedTrace[];
|
|
5
5
|
firstCallLoading: boolean;
|
|
6
6
|
error: {
|
|
@@ -15,15 +15,15 @@ export type ExtendedWorkflowWatchResult = WorkflowWatchResult & {
|
|
|
15
15
|
stack?: string;
|
|
16
16
|
} | null;
|
|
17
17
|
};
|
|
18
|
-
export declare const useLegacyWorkflow: (workflowId: string
|
|
18
|
+
export declare const useLegacyWorkflow: (workflowId: string) => {
|
|
19
19
|
legacyWorkflow: LegacyWorkflow<import('@mastra/core/workflows/legacy').LegacyStep<string, any, any, import('@mastra/core/workflows/legacy').StepExecutionContext<any, import('@mastra/core/workflows/legacy').WorkflowContext<any, import('@mastra/core/workflows/legacy').LegacyStep<string, any, any, any>[], Record<string, any>>>>[], string, any, any> | null;
|
|
20
20
|
isLoading: boolean;
|
|
21
21
|
};
|
|
22
|
-
export declare const useWorkflow: (workflowId: string
|
|
22
|
+
export declare const useWorkflow: (workflowId: string) => {
|
|
23
23
|
workflow: GetWorkflowResponse | null;
|
|
24
24
|
isLoading: boolean;
|
|
25
25
|
};
|
|
26
|
-
export declare const useExecuteWorkflow: (
|
|
26
|
+
export declare const useExecuteWorkflow: () => {
|
|
27
27
|
startWorkflowRun: ({ workflowId, runId, input, runtimeContext: playgroundRuntimeContext, }: {
|
|
28
28
|
workflowId: string;
|
|
29
29
|
runId: string;
|
|
@@ -54,7 +54,7 @@ export declare const useExecuteWorkflow: (baseUrl: string) => {
|
|
|
54
54
|
runtimeContext: Record<string, any>;
|
|
55
55
|
}) => Promise<import('@mastra/client-js').WorkflowRunResult>;
|
|
56
56
|
};
|
|
57
|
-
export declare const useWatchWorkflow: (
|
|
57
|
+
export declare const useWatchWorkflow: () => {
|
|
58
58
|
watchLegacyWorkflow: ({ workflowId, runId }: {
|
|
59
59
|
workflowId: string;
|
|
60
60
|
runId: string;
|
|
@@ -68,7 +68,7 @@ export declare const useWatchWorkflow: (baseUrl: string) => {
|
|
|
68
68
|
isWatchingWorkflow: boolean;
|
|
69
69
|
watchResult: ExtendedWorkflowWatchResult | null;
|
|
70
70
|
};
|
|
71
|
-
export declare const useResumeWorkflow: (
|
|
71
|
+
export declare const useResumeWorkflow: () => {
|
|
72
72
|
resumeLegacyWorkflow: ({ workflowId, stepId, runId, context, }: {
|
|
73
73
|
workflowId: string;
|
|
74
74
|
stepId: string;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from '../../node_modules/@types/react';
|
|
2
2
|
import { ChatProps } from '../types';
|
|
3
3
|
|
|
4
|
-
export declare function MastraRuntimeProvider({ children, agentId, initialMessages, agentName, memory, threadId,
|
|
4
|
+
export declare function MastraRuntimeProvider({ children, agentId, initialMessages, agentName, memory, threadId, refreshThreadList, modelSettings, chatWithGenerate, runtimeContext, }: Readonly<{
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
}> & ChatProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from '../../node_modules/@types/react';
|
|
2
2
|
import { ChatProps } from '../types';
|
|
3
3
|
|
|
4
|
-
export declare function MastraNetworkRuntimeProvider({ children, agentId, initialMessages, memory, threadId,
|
|
4
|
+
export declare function MastraNetworkRuntimeProvider({ children, agentId, initialMessages, memory, threadId, refreshThreadList, modelSettings, }: Readonly<{
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
}> & ChatProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/src/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/playground-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.1.2-alpha.
|
|
4
|
+
"version": "5.1.2-alpha.2",
|
|
5
5
|
"description": "Mastra Playground components",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"vite": "^6.0.0",
|
|
118
118
|
"vite-plugin-dts": "^3.9.1",
|
|
119
119
|
"vite-plugin-lib-inject-css": "^2.2.1",
|
|
120
|
-
"@mastra/core": "0.10.2-alpha.
|
|
120
|
+
"@mastra/core": "0.10.2-alpha.3"
|
|
121
121
|
},
|
|
122
122
|
"scripts": {
|
|
123
123
|
"dev": "vite",
|