@mastra/playground-ui 4.0.0-alpha.7 → 4.0.0-alpha.9
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/domains/agents/agent/context/agent-context.d.ts +13 -0
- package/dist/domains/agents/index.d.ts +1 -0
- package/dist/domains/workflows/context/workflow-run-context.d.ts +2 -2
- package/dist/ds/components/Badge/Badge.d.ts +9 -0
- package/dist/ds/components/Badge/index.d.ts +1 -0
- package/dist/ds/components/Breadcrumb/Breadcrumb.d.ts +16 -0
- package/dist/ds/components/Breadcrumb/index.d.ts +1 -0
- package/dist/ds/components/Button/Button.d.ts +10 -0
- package/dist/ds/components/Button/index.d.ts +1 -0
- package/dist/ds/components/Header/Header.d.ts +9 -0
- package/dist/ds/components/Header/index.d.ts +1 -0
- package/dist/ds/components/Logo/MastraLogo.d.ts +3 -0
- package/dist/ds/components/Logo/index.d.ts +1 -0
- package/dist/ds/components/Table/Cells.d.ts +24 -0
- package/dist/ds/components/Table/Table.d.ts +29 -0
- package/dist/ds/components/Table/index.d.ts +2 -0
- package/dist/ds/components/Table/utils.d.ts +4 -0
- package/dist/ds/components/Txt/Txt.d.ts +9 -0
- package/dist/ds/components/Txt/index.d.ts +1 -0
- package/dist/ds/components/types.d.ts +4 -0
- package/dist/ds/icons/AgentIcon.d.ts +3 -0
- package/dist/ds/icons/AiIcon.d.ts +3 -0
- package/dist/ds/icons/ApiIcon.d.ts +3 -0
- package/dist/ds/icons/BranchIcon.d.ts +3 -0
- package/dist/ds/icons/CheckIcon.d.ts +3 -0
- package/dist/ds/icons/CommitIcon.d.ts +3 -0
- package/dist/ds/icons/CrossIcon.d.ts +3 -0
- package/dist/ds/icons/DbIcon.d.ts +3 -0
- package/dist/ds/icons/DebugIcon.d.ts +3 -0
- package/dist/ds/icons/DeploymentIcon.d.ts +3 -0
- package/dist/ds/icons/DividerIcon.d.ts +3 -0
- package/dist/ds/icons/DocsIcon.d.ts +3 -0
- package/dist/ds/icons/EnvIcon.d.ts +3 -0
- package/dist/ds/icons/FiltersIcon.d.ts +3 -0
- package/dist/ds/icons/HomeIcon.d.ts +3 -0
- package/dist/ds/icons/Icon.d.ts +7 -0
- package/dist/ds/icons/InfoIcon.d.ts +3 -0
- package/dist/ds/icons/JudgeIcon.d.ts +3 -0
- package/dist/ds/icons/LogsIcon.d.ts +3 -0
- package/dist/ds/icons/MemoryIcon.d.ts +3 -0
- package/dist/ds/icons/OpenAIIcon.d.ts +3 -0
- package/dist/ds/icons/PromptIcon.d.ts +3 -0
- package/dist/ds/icons/ScoreIcon.d.ts +3 -0
- package/dist/ds/icons/SettingsIcon.d.ts +3 -0
- package/dist/ds/icons/SlashIcon.d.ts +3 -0
- package/dist/ds/icons/ToolsIcon.d.ts +3 -0
- package/dist/ds/icons/TraceIcon.d.ts +3 -0
- package/dist/ds/icons/TsIcon.d.ts +3 -0
- package/dist/ds/icons/VariablesIcon.d.ts +3 -0
- package/dist/ds/icons/WorkflowIcon.d.ts +3 -0
- package/dist/ds/tokens/borders.d.ts +9 -0
- package/dist/ds/tokens/colors.d.ts +23 -0
- package/dist/ds/tokens/fonts.d.ts +14 -0
- package/dist/ds/tokens/index.d.ts +5 -0
- package/dist/ds/tokens/sizes.d.ts +10 -0
- package/dist/ds/tokens/spacings.d.ts +5 -0
- package/dist/hooks/use-workflows.d.ts +9 -2
- package/dist/index.d.ts +4 -0
- package/dist/index.es.js +202 -16
- package/dist/index.es.js.map +1 -1
- package/dist/services/mastra-runtime-provider.d.ts +1 -1
- package/dist/types.d.ts +12 -0
- package/package.json +3 -3
|
@@ -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, baseUrl, refreshThreadList, }: Readonly<{
|
|
4
|
+
export declare function MastraRuntimeProvider({ children, agentId, initialMessages, agentName, memory, threadId, baseUrl, refreshThreadList, modelSettings, }: Readonly<{
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
}> & ChatProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/types.d.ts
CHANGED
|
@@ -4,6 +4,17 @@ export interface Message {
|
|
|
4
4
|
content: any;
|
|
5
5
|
isError?: boolean;
|
|
6
6
|
}
|
|
7
|
+
export interface ModelSettings {
|
|
8
|
+
frequencyPenalty?: number;
|
|
9
|
+
presencePenalty?: number;
|
|
10
|
+
maxRetries?: number;
|
|
11
|
+
maxSteps?: number;
|
|
12
|
+
maxTokens?: number;
|
|
13
|
+
temperature?: number;
|
|
14
|
+
topK?: number;
|
|
15
|
+
topP?: number;
|
|
16
|
+
instructions?: string;
|
|
17
|
+
}
|
|
7
18
|
export interface ChatProps {
|
|
8
19
|
agentId: string;
|
|
9
20
|
agentName?: string;
|
|
@@ -12,6 +23,7 @@ export interface ChatProps {
|
|
|
12
23
|
memory?: boolean;
|
|
13
24
|
baseUrl?: string;
|
|
14
25
|
refreshThreadList?: () => void;
|
|
26
|
+
modelSettings?: ModelSettings;
|
|
15
27
|
}
|
|
16
28
|
export type SpanStatus = {
|
|
17
29
|
code: number;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/playground-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-alpha.
|
|
4
|
+
"version": "4.0.0-alpha.9",
|
|
5
5
|
"description": "Mastra Playground components",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -81,14 +81,14 @@
|
|
|
81
81
|
"use-debounce": "^10.0.4",
|
|
82
82
|
"zod": "^3.24.2",
|
|
83
83
|
"zustand": "^5.0.3",
|
|
84
|
-
"@mastra/client-js": "^0.1.14-alpha.
|
|
84
|
+
"@mastra/client-js": "^0.1.14-alpha.8"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"lucide-react": "^0.474.0",
|
|
88
88
|
"react": ">=19.0.0",
|
|
89
89
|
"react-dom": ">=19.0.0",
|
|
90
90
|
"tailwindcss": "^3.0.0",
|
|
91
|
-
"@mastra/core": "^0.8.0-alpha.
|
|
91
|
+
"@mastra/core": "^0.8.0-alpha.8"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
94
|
"@types/node": "^20.17.27",
|