@mastra/playground-ui 20.0.0-alpha.8 → 20.0.0

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.
@@ -1,5 +1,5 @@
1
1
  import { ChatProps } from '../../../types';
2
- export declare const AgentChat: ({ agentId, agentName, threadId, memory, refreshThreadList, modelVersion, modelList, messageId, isNewThread, hideModelSwitcher, }: Omit<ChatProps, "initialMessages" | "initialLegacyMessages"> & {
2
+ export declare const AgentChat: ({ agentId, agentName, threadId, memory, refreshThreadList, modelVersion, agentVersionId, modelList, messageId, isNewThread, hideModelSwitcher, }: Omit<ChatProps, "initialMessages" | "initialLegacyMessages"> & {
3
3
  messageId?: string;
4
4
  isNewThread?: boolean;
5
5
  hideModelSwitcher?: boolean;
@@ -2,7 +2,8 @@ interface AgentPlaygroundTestChatProps {
2
2
  agentId: string;
3
3
  agentName?: string;
4
4
  modelVersion?: string;
5
+ agentVersionId?: string;
5
6
  hasMemory: boolean;
6
7
  }
7
- export declare function AgentPlaygroundTestChat({ agentId, agentName, modelVersion, hasMemory }: AgentPlaygroundTestChatProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function AgentPlaygroundTestChat({ agentId, agentName, modelVersion, agentVersionId, hasMemory, }: AgentPlaygroundTestChatProps): import("react/jsx-runtime").JSX.Element;
8
9
  export {};
@@ -2,6 +2,7 @@ interface AgentPlaygroundViewProps {
2
2
  agentId: string;
3
3
  agentName?: string;
4
4
  modelVersion?: string;
5
+ agentVersionId?: string;
5
6
  hasMemory: boolean;
6
7
  activeVersionId?: string;
7
8
  selectedVersionId?: string;
@@ -15,5 +16,5 @@ interface AgentPlaygroundViewProps {
15
16
  onSaveDraft: (changeMessage?: string) => Promise<void>;
16
17
  onPublish: () => Promise<void>;
17
18
  }
18
- export declare function AgentPlaygroundView({ agentId, agentName, modelVersion, hasMemory, activeVersionId, selectedVersionId, latestVersionId, onVersionSelect, isDirty, isSavingDraft, isPublishing, hasDraft, readOnly, onSaveDraft, onPublish, }: AgentPlaygroundViewProps): import("react/jsx-runtime").JSX.Element;
19
+ export declare function AgentPlaygroundView({ agentId, agentName, modelVersion, agentVersionId, hasMemory, activeVersionId, selectedVersionId, latestVersionId, onVersionSelect, isDirty, isSavingDraft, isPublishing, hasDraft, readOnly, onSaveDraft, onPublish, }: AgentPlaygroundViewProps): import("react/jsx-runtime").JSX.Element;
19
20
  export {};
@@ -3,8 +3,8 @@ export declare function useAgentRunsKpiMetrics(): import('@tanstack/react-query'
3
3
  value: number | null;
4
4
  estimatedCost?: number | null | undefined;
5
5
  costUnit?: string | null | undefined;
6
- previousValue?: number | null | undefined;
7
6
  previousEstimatedCost?: number | null | undefined;
8
- changePercent?: number | null | undefined;
9
7
  costChangePercent?: number | null | undefined;
8
+ previousValue?: number | null | undefined;
9
+ changePercent?: number | null | undefined;
10
10
  }, Error>;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from '../../node_modules/@types/react';
2
2
  import { ChatProps } from '../types';
3
- export declare function MastraRuntimeProvider({ children, agentId, initialMessages, initialLegacyMessages, memory, threadId, refreshThreadList, settings, requestContext, modelVersion, }: Readonly<{
3
+ export declare function MastraRuntimeProvider({ children, agentId, initialMessages, initialLegacyMessages, memory, threadId, refreshThreadList, settings, requestContext, modelVersion, agentVersionId, }: Readonly<{
4
4
  children: ReactNode;
5
5
  }> & ChatProps): import("react/jsx-runtime").JSX.Element;
@@ -48,6 +48,7 @@ export interface ChatProps {
48
48
  agentId: string;
49
49
  agentName?: string;
50
50
  modelVersion?: string;
51
+ agentVersionId?: string;
51
52
  threadId: string;
52
53
  initialMessages?: MastraUIMessage[];
53
54
  initialLegacyMessages?: UIMessageWithMetadata[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mastra/playground-ui",
3
3
  "type": "module",
4
- "version": "20.0.0-alpha.8",
4
+ "version": "20.0.0",
5
5
  "description": "Mastra Playground components",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
@@ -119,9 +119,9 @@
119
119
  "react-dom": ">=19.0.0",
120
120
  "tailwindcss": "^4.0.0",
121
121
  "zod": "^3.25.0 || ^4.0.0",
122
- "@mastra/ai-sdk": "^1.3.0-alpha.0",
123
- "@mastra/client-js": "^1.11.0-alpha.7",
124
- "@mastra/react": "0.2.18-alpha.7",
122
+ "@mastra/ai-sdk": "^1.3.0",
123
+ "@mastra/client-js": "^1.11.0",
124
+ "@mastra/react": "0.2.18",
125
125
  "@mastra/schema-compat": "1.2.7"
126
126
  },
127
127
  "devDependencies": {
@@ -154,12 +154,12 @@
154
154
  "vite-plugin-lib-inject-css": "^2.2.2",
155
155
  "vitest": "4.0.18",
156
156
  "zod": "^4.3.6",
157
- "@internal/lint": "0.0.74",
158
- "@mastra/core": "1.18.0-alpha.4",
159
- "@mastra/client-js": "^1.11.0-alpha.7",
160
- "@mastra/react": "0.2.18-alpha.7",
161
- "@mastra/schema-compat": "1.2.7",
162
- "@mastra/ai-sdk": "^1.3.0-alpha.0"
157
+ "@internal/lint": "0.0.75",
158
+ "@mastra/client-js": "^1.11.0",
159
+ "@mastra/ai-sdk": "^1.3.0",
160
+ "@mastra/react": "0.2.18",
161
+ "@mastra/core": "1.18.0",
162
+ "@mastra/schema-compat": "1.2.7"
163
163
  },
164
164
  "homepage": "https://mastra.ai",
165
165
  "repository": {