@mastra/playground-ui 6.5.2-alpha.0 → 6.6.0-alpha.1
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 +21 -0
- package/dist/index.cjs.js +116 -62
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +117 -63
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/assistant-ui/tools/badges/agent-badge-wrapper.d.ts +13 -0
- package/dist/src/components/assistant-ui/tools/badges/workflow-badge.d.ts +1 -3
- package/dist/src/components/ui/syntax-highlighter.d.ts +3 -2
- package/dist/src/domains/agents/components/agent-chat.d.ts +3 -1
- package/dist/src/hooks/use-agent-messages.d.ts +5 -0
- package/package.json +7 -7
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MastraUIMessage } from '@mastra/react';
|
|
2
|
+
import { AgentMessage } from './agent-badge';
|
|
3
|
+
interface AgentBadgeWrapperProps {
|
|
4
|
+
agentId: string;
|
|
5
|
+
result: {
|
|
6
|
+
childMessages: AgentMessage[];
|
|
7
|
+
subAgentResourceId?: string;
|
|
8
|
+
subAgentThreadId?: string;
|
|
9
|
+
};
|
|
10
|
+
metadata?: MastraUIMessage['metadata'];
|
|
11
|
+
}
|
|
12
|
+
export declare const AgentBadgeWrapper: ({ agentId, result, metadata }: AgentBadgeWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { GetWorkflowResponse } from '@mastra/client-js';
|
|
2
1
|
import { WorkflowRunStreamResult } from '../../../../domains/workflows/context/workflow-run-context';
|
|
3
2
|
import { MastraUIMessage } from '@mastra/react';
|
|
4
3
|
export interface WorkflowBadgeProps {
|
|
5
|
-
workflow: GetWorkflowResponse;
|
|
6
4
|
workflowId: string;
|
|
7
5
|
runId?: string;
|
|
8
6
|
isStreaming?: boolean;
|
|
9
7
|
metadata?: MastraUIMessage['metadata'];
|
|
10
8
|
}
|
|
11
|
-
export declare const WorkflowBadge: ({
|
|
9
|
+
export declare const WorkflowBadge: ({ runId, workflowId, isStreaming, metadata }: WorkflowBadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
10
|
export declare const useWorkflowStream: (workflowFullState?: WorkflowRunStreamResult) => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes } from '../../../node_modules/@types/react';
|
|
1
2
|
export declare const useCodemirrorTheme: () => import('@uiw/react-codemirror').Extension;
|
|
2
|
-
export declare const SyntaxHighlighter: ({ data, className, }: {
|
|
3
|
+
export declare const SyntaxHighlighter: ({ data, className, ...props }: {
|
|
3
4
|
data: Record<string, unknown> | Array<Record<string, unknown>>;
|
|
4
5
|
className?: string;
|
|
5
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
} & HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export declare function highlight(code: string, language: string): Promise<import('shiki').ThemedToken[][] | null>;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
import { ChatProps } from '../../../types';
|
|
2
|
-
export declare const AgentChat: ({ agentId, agentName, threadId,
|
|
2
|
+
export declare const AgentChat: ({ agentId, agentName, threadId, memory, refreshThreadList, modelVersion, modelList, messageId, }: Omit<ChatProps, "initialMessages" | "initialLegacyMessages"> & {
|
|
3
|
+
messageId?: string;
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/playground-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.6.0-alpha.1",
|
|
5
5
|
"description": "Mastra Playground components",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -102,13 +102,13 @@
|
|
|
102
102
|
"zustand": "^5.0.8"
|
|
103
103
|
},
|
|
104
104
|
"peerDependencies": {
|
|
105
|
-
"@mastra/core": ">=0.21.
|
|
105
|
+
"@mastra/core": ">=0.21.2-0 <0.23.0-0",
|
|
106
106
|
"lucide-react": "^0.474.0",
|
|
107
107
|
"react": ">=19.0.0",
|
|
108
108
|
"react-dom": ">=19.0.0",
|
|
109
109
|
"tailwindcss": "^3.0.0",
|
|
110
|
-
"@mastra/client-js": "^0.16.2-alpha.
|
|
111
|
-
"@mastra/react": "0.0.8-alpha.
|
|
110
|
+
"@mastra/client-js": "^0.16.2-alpha.1",
|
|
111
|
+
"@mastra/react": "0.0.8-alpha.1"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@storybook/addon-docs": "^9.1.10",
|
|
@@ -130,9 +130,9 @@
|
|
|
130
130
|
"vite-plugin-dts": "^4.5.4",
|
|
131
131
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
132
132
|
"vitest": "^3.2.4",
|
|
133
|
-
"@mastra/
|
|
134
|
-
"@mastra/
|
|
135
|
-
"@mastra/
|
|
133
|
+
"@mastra/react": "0.0.8-alpha.1",
|
|
134
|
+
"@mastra/core": "0.22.0-alpha.1",
|
|
135
|
+
"@mastra/client-js": "^0.16.2-alpha.1"
|
|
136
136
|
},
|
|
137
137
|
"homepage": "https://mastra.ai",
|
|
138
138
|
"repository": {
|