@mastra/playground-ui 7.0.0-beta.2 → 7.0.0-beta.4
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 +43 -0
- package/dist/index.cjs.js +310 -238
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +306 -239
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/ui/elements/notification/notification.d.ts +3 -1
- 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-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 +2 -0
- package/dist/src/domains/observability/components/span-scoring.d.ts +2 -1
- package/package.json +16 -14
|
@@ -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,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;
|
|
@@ -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,5 @@ 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';
|
|
@@ -2,5 +2,6 @@ export interface SpanScoringProps {
|
|
|
2
2
|
traceId?: string;
|
|
3
3
|
spanId?: string;
|
|
4
4
|
entityType?: string;
|
|
5
|
+
isTopLevelSpan?: boolean;
|
|
5
6
|
}
|
|
6
|
-
export declare const SpanScoring: ({ traceId, spanId, entityType }: SpanScoringProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const SpanScoring: ({ traceId, spanId, entityType, isTopLevelSpan }: SpanScoringProps) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/playground-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.0-beta.
|
|
4
|
+
"version": "7.0.0-beta.4",
|
|
5
5
|
"description": "Mastra Playground components",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@codemirror/language-data": "^6.5.2",
|
|
51
51
|
"@codemirror/state": "^6.5.2",
|
|
52
52
|
"@codemirror/view": "^6.38.6",
|
|
53
|
-
"@dagrejs/dagre": "^1.1.
|
|
53
|
+
"@dagrejs/dagre": "^1.1.8",
|
|
54
54
|
"@hello-pangea/dnd": "^18.0.1",
|
|
55
55
|
"@hookform/resolvers": "^3.10.0",
|
|
56
56
|
"@lezer/highlight": "^1.2.3",
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
"@tanstack/react-table": "^8.21.3",
|
|
78
78
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
79
79
|
"@uiw/codemirror-theme-dracula": "^4.23.14",
|
|
80
|
-
"@uiw/codemirror-theme-github": "^4.25.
|
|
80
|
+
"@uiw/codemirror-theme-github": "^4.25.3",
|
|
81
81
|
"@uiw/react-codemirror": "^4.23.14",
|
|
82
|
-
"@xyflow/react": "^12.
|
|
82
|
+
"@xyflow/react": "^12.9.3",
|
|
83
83
|
"cmdk": "^1.1.1",
|
|
84
84
|
"date-fns": "^4.1.0",
|
|
85
85
|
"json-schema-to-zod": "^2.6.1",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"use-debounce": "^10.0.6",
|
|
105
105
|
"zod": "^4.1.12",
|
|
106
106
|
"zustand": "^5.0.8",
|
|
107
|
-
"@mastra/ai-sdk": "^1.0.0-beta.
|
|
107
|
+
"@mastra/ai-sdk": "^1.0.0-beta.3"
|
|
108
108
|
},
|
|
109
109
|
"peerDependencies": {
|
|
110
110
|
"@mastra/core": ">=1.0.0-0 <2.0.0-0",
|
|
@@ -113,18 +113,20 @@
|
|
|
113
113
|
"react": ">=19.0.0",
|
|
114
114
|
"react-dom": ">=19.0.0",
|
|
115
115
|
"tailwindcss": "^3.0.0",
|
|
116
|
-
"@mastra/client-js": "^1.0.0-beta.
|
|
117
|
-
"@mastra/react": "0.1.0-beta.
|
|
116
|
+
"@mastra/client-js": "^1.0.0-beta.4",
|
|
117
|
+
"@mastra/react": "0.1.0-beta.4"
|
|
118
118
|
},
|
|
119
119
|
"devDependencies": {
|
|
120
120
|
"@storybook/addon-docs": "^9.1.16",
|
|
121
121
|
"@storybook/react-vite": "^9.1.16",
|
|
122
|
-
"@tanstack/react-query": "^5.90.
|
|
123
|
-
"@types/node": "
|
|
122
|
+
"@tanstack/react-query": "^5.90.9",
|
|
123
|
+
"@types/node": "22.13.17",
|
|
124
124
|
"@types/react": "^19.1.9",
|
|
125
125
|
"@types/react-dom": "^19.1.7",
|
|
126
126
|
"@vitejs/plugin-react": "^5.0.4",
|
|
127
|
-
"
|
|
127
|
+
"@vitest/coverage-v8": "4.0.8",
|
|
128
|
+
"@vitest/ui": "4.0.8",
|
|
129
|
+
"autoprefixer": "^10.4.22",
|
|
128
130
|
"class-variance-authority": "^0.7.1",
|
|
129
131
|
"clsx": "^2.1.1",
|
|
130
132
|
"postcss": "^8.5.6",
|
|
@@ -136,10 +138,10 @@
|
|
|
136
138
|
"vite": "^7.1.9",
|
|
137
139
|
"vite-plugin-dts": "^4.5.4",
|
|
138
140
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
139
|
-
"vitest": "^
|
|
140
|
-
"@mastra/
|
|
141
|
-
"@mastra/
|
|
142
|
-
"@mastra/react": "0.1.0-beta.
|
|
141
|
+
"vitest": "^4.0.8",
|
|
142
|
+
"@mastra/client-js": "^1.0.0-beta.4",
|
|
143
|
+
"@mastra/core": "1.0.0-beta.4",
|
|
144
|
+
"@mastra/react": "0.1.0-beta.4"
|
|
143
145
|
},
|
|
144
146
|
"homepage": "https://mastra.ai",
|
|
145
147
|
"repository": {
|