@mastra/playground-ui 5.1.11 → 5.1.12

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.
@@ -4,9 +4,8 @@ export interface ThreadProps {
4
4
  ToolFallback?: ToolCallContentPartComponent;
5
5
  networkName?: string;
6
6
  hasMemory?: boolean;
7
- showFileSupport?: boolean;
8
7
  }
9
- export declare const NetworkThread: ({ ToolFallback, networkName, hasMemory, showFileSupport }: ThreadProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const NetworkThread: ({ ToolFallback, networkName, hasMemory }: ThreadProps) => import("react/jsx-runtime").JSX.Element;
10
9
  export interface ThreadWelcomeProps {
11
10
  networkName?: string;
12
11
  }
@@ -4,9 +4,8 @@ export interface ThreadProps {
4
4
  ToolFallback?: ToolCallContentPartComponent;
5
5
  agentName?: string;
6
6
  hasMemory?: boolean;
7
- showFileSupport?: boolean;
8
7
  }
9
- export declare const Thread: ({ ToolFallback, agentName, hasMemory, showFileSupport }: ThreadProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const Thread: ({ ToolFallback, agentName, hasMemory }: ThreadProps) => import("react/jsx-runtime").JSX.Element;
10
9
  export interface ThreadWelcomeProps {
11
10
  agentName?: string;
12
11
  }
@@ -1,3 +1,3 @@
1
1
  import { ChatProps } from '../../../types';
2
2
 
3
- export declare const AgentChat: ({ agentId, agentName, threadId, initialMessages, memory, refreshThreadList, showFileSupport, }: ChatProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const AgentChat: ({ agentId, agentName, threadId, initialMessages, memory, refreshThreadList }: ChatProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const AgentSettings: () => import("react/jsx-runtime").JSX.Element;
@@ -1,12 +1,10 @@
1
1
  import { ReactNode } from '../../../../node_modules/@types/react';
2
- import { ModelSettings } from '../../../types';
2
+ import { AgentSettingsType as AgentSettings } from '../../../types';
3
3
 
4
4
  type AgentContextType = {
5
- modelSettings: ModelSettings;
6
- chatWithGenerate: boolean;
7
- setModelSettings: (modelSettings: ModelSettings) => void;
8
- resetModelSettings: () => void;
9
- setChatWithGenerate: (chatWithGenerate: boolean) => void;
5
+ settings?: AgentSettings;
6
+ setSettings: (settings: AgentSettings) => void;
7
+ resetAll: () => void;
10
8
  };
11
9
  export declare const AgentSettingsContext: import('../../../../node_modules/@types/react').Context<AgentContextType>;
12
10
  export interface AgentSettingsProviderProps {
@@ -0,0 +1,10 @@
1
+ import { AgentSettingsType as AgentSettings } from '../../../types';
2
+
3
+ export interface AgentSettingsStateProps {
4
+ agentId: string;
5
+ }
6
+ export declare function useAgentSettingsState({ agentId }: AgentSettingsStateProps): {
7
+ settings: AgentSettings | undefined;
8
+ setSettings: (settingsValue: AgentSettings) => void;
9
+ resetAll: () => void;
10
+ };
@@ -2,4 +2,4 @@ export * from './components/agent-chat';
2
2
  export * from './components/agent-evals';
3
3
  export * from './components/agent-traces';
4
4
  export * from './context/agent-context';
5
- export * from './components/agent-model-settings';
5
+ export * from './components/agent-settings';
@@ -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, refreshThreadList, modelSettings, chatWithGenerate, runtimeContext, }: Readonly<{
4
+ export declare function MastraRuntimeProvider({ children, agentId, initialMessages, memory, threadId, refreshThreadList, settings, runtimeContext, }: Readonly<{
5
5
  children: ReactNode;
6
6
  }> & ChatProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,8 @@
1
1
  import { ReactNode } from '../../node_modules/@types/react';
2
- import { ChatProps } from '../types';
2
+ import { ChatProps, ModelSettings } from '../types';
3
3
 
4
- export declare function MastraNetworkRuntimeProvider({ children, agentId, initialMessages, memory, threadId, refreshThreadList, modelSettings, }: Readonly<{
4
+ export declare function MastraNetworkRuntimeProvider({ children, agentId, initialMessages, memory, threadId, modelSettings, }: Readonly<{
5
5
  children: ReactNode;
6
- }> & ChatProps): import("react/jsx-runtime").JSX.Element;
6
+ }> & Omit<ChatProps, 'settings'> & {
7
+ modelSettings: ModelSettings;
8
+ }): import("react/jsx-runtime").JSX.Element;
@@ -35,6 +35,10 @@ export interface ModelSettings {
35
35
  topK?: number;
36
36
  topP?: number;
37
37
  instructions?: string;
38
+ chatWithGenerate?: boolean;
39
+ }
40
+ export interface AgentSettingsType {
41
+ modelSettings: ModelSettings;
38
42
  }
39
43
  export interface ChatProps {
40
44
  agentId: string;
@@ -43,10 +47,8 @@ export interface ChatProps {
43
47
  initialMessages?: Message[];
44
48
  memory?: boolean;
45
49
  refreshThreadList?: () => void;
46
- modelSettings?: ModelSettings;
47
- chatWithGenerate?: boolean;
50
+ settings?: AgentSettingsType;
48
51
  runtimeContext?: Record<string, any>;
49
- showFileSupport?: boolean;
50
52
  }
51
53
  export type SpanStatus = {
52
54
  code: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mastra/playground-ui",
3
3
  "type": "module",
4
- "version": "5.1.11",
4
+ "version": "5.1.12",
5
5
  "description": "Mastra Playground components",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
@@ -93,7 +93,7 @@
93
93
  "use-debounce": "^10.0.5",
94
94
  "zod": "^3.25.67",
95
95
  "zustand": "^5.0.5",
96
- "@mastra/client-js": "^0.10.10"
96
+ "@mastra/client-js": "^0.10.11"
97
97
  },
98
98
  "peerDependencies": {
99
99
  "@mastra/core": ">=0.10.11-0 <0.11.0-0",
@@ -118,7 +118,7 @@
118
118
  "vite": "^6.3.5",
119
119
  "vite-plugin-dts": "^3.9.1",
120
120
  "vite-plugin-lib-inject-css": "^2.2.2",
121
- "@mastra/core": "0.10.11"
121
+ "@mastra/core": "0.10.12"
122
122
  },
123
123
  "scripts": {
124
124
  "dev": "vite",
@@ -1 +0,0 @@
1
- export declare function AgentModelSettings(): import("react/jsx-runtime").JSX.Element;
@@ -1,15 +0,0 @@
1
- import { ModelSettings } from '../../../types';
2
-
3
- export interface AgentModelSettingsStateProps {
4
- initialModelSettings?: ModelSettings;
5
- initialChatWithGenerate?: boolean;
6
- agentId: string;
7
- }
8
- export declare const defaultModelSettings: ModelSettings;
9
- export declare function useAgentModelSettingsState({ agentId }: AgentModelSettingsStateProps): {
10
- modelSettings: ModelSettings | undefined;
11
- chatWithGenerate: boolean;
12
- setModelSettings: (modelSettingsValue: ModelSettings) => void;
13
- setChatWithGenerate: (chatWithGenerateValue: boolean) => void;
14
- resetAll: () => void;
15
- };