@mastra/playground-ui 6.1.4-alpha.2 → 6.2.0-alpha.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 +34 -0
- package/dist/index.cjs.js +359 -783
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +358 -783
- package/dist/index.es.js.map +1 -1
- package/dist/src/domains/agents/components/agent-metadata/agent-metadata.d.ts +9 -1
- package/dist/src/domains/networks/components/network-table/network-table.d.ts +3 -4
- package/dist/src/domains/networks/components/network-table/types.d.ts +0 -1
- package/dist/src/domains/networks/index.d.ts +0 -1
- package/dist/src/domains/scores/components/scorers-table/columns.d.ts +3 -0
- package/dist/src/domains/scores/components/scorers-table/scorers-table.d.ts +9 -0
- package/dist/src/domains/scores/components/scorers-table/types.d.ts +5 -0
- package/dist/src/domains/scores/index.d.ts +1 -1
- package/dist/src/hooks/use-workflows.d.ts +2 -2
- package/dist/src/index.d.ts +1 -1
- package/dist/src/lib/errors.d.ts +4 -0
- package/dist/src/store/playground-store.d.ts +5 -3
- package/package.json +6 -6
- package/dist/src/components/ui/data-table.d.ts +0 -39
- package/dist/src/domains/networks/network-chat.d.ts +0 -2
- package/dist/src/domains/scores/components/scorer-list.d.ts +0 -7
- package/dist/src/services/network-runtime-provider.d.ts +0 -7
|
@@ -11,6 +11,7 @@ export interface AgentMetadataProps {
|
|
|
11
11
|
}) => string;
|
|
12
12
|
computeToolLink: (tool: GetToolResponse) => string;
|
|
13
13
|
computeWorkflowLink: (workflowId: string, workflow: GetWorkflowResponse) => string;
|
|
14
|
+
computeScorerLink: (scorerId: string) => string;
|
|
14
15
|
modelProviders: string[];
|
|
15
16
|
updateModel: AgentMetadataModelSwitcherProps['updateModel'];
|
|
16
17
|
}
|
|
@@ -25,7 +26,7 @@ export interface AgentMetadataNetworkListProps {
|
|
|
25
26
|
}) => string;
|
|
26
27
|
}
|
|
27
28
|
export declare const AgentMetadataNetworkList: ({ agents, computeAgentLink }: AgentMetadataNetworkListProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
export declare const AgentMetadata: ({ agent, promptSlot, hasMemoryEnabled, computeAgentLink, computeToolLink, computeWorkflowLink, updateModel, modelProviders, }: AgentMetadataProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare const AgentMetadata: ({ agent, promptSlot, hasMemoryEnabled, computeAgentLink, computeToolLink, computeWorkflowLink, computeScorerLink, updateModel, modelProviders, }: AgentMetadataProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
30
|
export interface AgentMetadataToolListProps {
|
|
30
31
|
tools: GetToolResponse[];
|
|
31
32
|
computeToolLink: (tool: GetToolResponse) => string;
|
|
@@ -38,3 +39,10 @@ export interface AgentMetadataWorkflowListProps {
|
|
|
38
39
|
computeWorkflowLink: (workflowId: string, workflow: GetWorkflowResponse) => string;
|
|
39
40
|
}
|
|
40
41
|
export declare const AgentMetadataWorkflowList: ({ workflows, computeWorkflowLink }: AgentMetadataWorkflowListProps) => import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
interface AgentMetadataScorerListProps {
|
|
43
|
+
computeScorerLink: (scorerId: string) => string;
|
|
44
|
+
entityId: string;
|
|
45
|
+
entityType: string;
|
|
46
|
+
}
|
|
47
|
+
export declare const AgentMetadataScorerList: ({ entityId, entityType, computeScorerLink }: AgentMetadataScorerListProps) => import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export {};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GetVNextNetworkResponse } from '@mastra/client-js';
|
|
2
2
|
export interface NetworkTableProps {
|
|
3
|
-
legacyNetworks: GetNetworkResponse[];
|
|
4
3
|
networks: GetVNextNetworkResponse[];
|
|
5
4
|
isLoading: boolean;
|
|
6
|
-
computeLink: (networkId: string
|
|
5
|
+
computeLink: (networkId: string) => string;
|
|
7
6
|
}
|
|
8
|
-
export declare const NetworkTable: ({
|
|
7
|
+
export declare const NetworkTable: ({ networks, isLoading, computeLink }: NetworkTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export declare const NetworkTableEmpty: () => import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export declare const NetworkTableSkeleton: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GetScorerResponse } from '@mastra/client-js';
|
|
2
|
+
export interface ScorersTableProps {
|
|
3
|
+
scorers: Record<string, GetScorerResponse>;
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
computeScorerLink: (scorerId: string) => string;
|
|
6
|
+
}
|
|
7
|
+
export declare function ScorersTable({ scorers, isLoading, computeScorerLink }: ScorersTableProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const ScorersTableSkeleton: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const EmptyScorersTable: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LegacyWorkflowRunResult, WorkflowWatchResult
|
|
1
|
+
import { LegacyWorkflowRunResult, WorkflowWatchResult } from '@mastra/client-js';
|
|
2
2
|
import { LegacyWorkflow } from '@mastra/core/workflows/legacy';
|
|
3
3
|
export type ExtendedLegacyWorkflowRunResult = LegacyWorkflowRunResult & {
|
|
4
4
|
sanitizedOutput?: string | null;
|
|
@@ -14,7 +14,7 @@ export type ExtendedWorkflowWatchResult = WorkflowWatchResult & {
|
|
|
14
14
|
stack?: string;
|
|
15
15
|
} | null;
|
|
16
16
|
};
|
|
17
|
-
export declare const useWorkflow: (workflowId: string, enabled?: boolean) => import('@tanstack/react-query').UseQueryResult<GetWorkflowResponse, Error>;
|
|
17
|
+
export declare const useWorkflow: (workflowId: string, enabled?: boolean) => import('@tanstack/react-query').UseQueryResult<import('@mastra/client-js').GetWorkflowResponse, Error>;
|
|
18
18
|
export declare const useLegacyWorkflow: (workflowId: string) => {
|
|
19
19
|
legacyWorkflow: LegacyWorkflow<import('@mastra/core/workflows/legacy').LegacyStep<string, any, any, import('@mastra/core/workflows/legacy').StepExecutionContext<any, import('@mastra/core/workflows/legacy').WorkflowContext<any, import('@mastra/core/workflows/legacy').LegacyStep<string, any, any, any>[], Record<string, any>>>>[], string, any, any> | null;
|
|
20
20
|
isLoading: boolean;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ export * from './domains/traces/index';
|
|
|
9
9
|
export * from './domains/observability/index';
|
|
10
10
|
export * from './domains/resizable-panel';
|
|
11
11
|
export * from './components/dynamic-form/index';
|
|
12
|
-
export * from './components/ui/data-table';
|
|
13
12
|
export * from './components/ui/containers';
|
|
14
13
|
export * from './components/ui/elements';
|
|
15
14
|
export * from './components/threads';
|
|
@@ -42,3 +41,4 @@ export * from './components/ui/searchbar';
|
|
|
42
41
|
export * from './components/ui/kbd';
|
|
43
42
|
export * from './components/ui/collapsible';
|
|
44
43
|
export * from './domains/conversation/index';
|
|
44
|
+
export * from './lib/errors';
|
|
@@ -2,15 +2,17 @@ interface PlaygroundStore {
|
|
|
2
2
|
runtimeContext: Record<string, any>;
|
|
3
3
|
setRuntimeContext: (runtimeContext: Record<string, any>) => void;
|
|
4
4
|
}
|
|
5
|
-
export declare const usePlaygroundStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<PlaygroundStore>, "persist"> & {
|
|
5
|
+
export declare const usePlaygroundStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<PlaygroundStore>, "setState" | "persist"> & {
|
|
6
|
+
setState(partial: PlaygroundStore | Partial<PlaygroundStore> | ((state: PlaygroundStore) => PlaygroundStore | Partial<PlaygroundStore>), replace?: false | undefined): unknown;
|
|
7
|
+
setState(state: PlaygroundStore | ((state: PlaygroundStore) => PlaygroundStore), replace: true): unknown;
|
|
6
8
|
persist: {
|
|
7
|
-
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<PlaygroundStore, PlaygroundStore>>) => void;
|
|
9
|
+
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<PlaygroundStore, PlaygroundStore, unknown>>) => void;
|
|
8
10
|
clearStorage: () => void;
|
|
9
11
|
rehydrate: () => Promise<void> | void;
|
|
10
12
|
hasHydrated: () => boolean;
|
|
11
13
|
onHydrate: (fn: (state: PlaygroundStore) => void) => () => void;
|
|
12
14
|
onFinishHydration: (fn: (state: PlaygroundStore) => void) => () => void;
|
|
13
|
-
getOptions: () => Partial<import('zustand/middleware').PersistOptions<PlaygroundStore, PlaygroundStore>>;
|
|
15
|
+
getOptions: () => Partial<import('zustand/middleware').PersistOptions<PlaygroundStore, PlaygroundStore, unknown>>;
|
|
14
16
|
};
|
|
15
17
|
}>;
|
|
16
18
|
export {};
|
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.2.0-alpha.4",
|
|
5
5
|
"description": "Mastra Playground components",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -96,10 +96,10 @@
|
|
|
96
96
|
"swr": "^2.3.6",
|
|
97
97
|
"tailwindcss-animate": "^1.0.7",
|
|
98
98
|
"unified": "^11.0.5",
|
|
99
|
-
"use-debounce": "^10.0.
|
|
99
|
+
"use-debounce": "^10.0.6",
|
|
100
100
|
"zod": "^4.1.5",
|
|
101
|
-
"zustand": "^5.0.
|
|
102
|
-
"@mastra/client-js": "^0.13.0-alpha.
|
|
101
|
+
"zustand": "^5.0.8",
|
|
102
|
+
"@mastra/client-js": "^0.13.0-alpha.7"
|
|
103
103
|
},
|
|
104
104
|
"peerDependencies": {
|
|
105
105
|
"@mastra/core": ">=0.17.0-0 <0.18.0-0",
|
|
@@ -124,10 +124,10 @@
|
|
|
124
124
|
"tailwind-merge": "^3.3.1",
|
|
125
125
|
"tailwindcss": "^3.4.17",
|
|
126
126
|
"typescript": "^5.8.3",
|
|
127
|
-
"vite": "^6.3.
|
|
127
|
+
"vite": "^6.3.6",
|
|
128
128
|
"vite-plugin-dts": "^4.5.4",
|
|
129
129
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
130
|
-
"@mastra/core": "0.17.0-alpha.
|
|
130
|
+
"@mastra/core": "0.17.0-alpha.7"
|
|
131
131
|
},
|
|
132
132
|
"homepage": "https://mastra.ai",
|
|
133
133
|
"repository": {
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ColumnDef as ReactTableColumnDef } from '@tanstack/react-table';
|
|
2
|
-
import { PaginationResult } from '../../lib/pagination/types';
|
|
3
|
-
export interface DataTableProps<TData, TValue> {
|
|
4
|
-
/**
|
|
5
|
-
* table columns
|
|
6
|
-
*/
|
|
7
|
-
columns: ReactTableColumnDef<TData, TValue>[];
|
|
8
|
-
/**
|
|
9
|
-
* table data
|
|
10
|
-
*/
|
|
11
|
-
data: TData[];
|
|
12
|
-
pagination?: PaginationResult;
|
|
13
|
-
/**
|
|
14
|
-
* goto next page
|
|
15
|
-
*/
|
|
16
|
-
gotoNextPage?: () => void;
|
|
17
|
-
/**
|
|
18
|
-
* goto previous page
|
|
19
|
-
*/
|
|
20
|
-
gotoPreviousPage?: () => void;
|
|
21
|
-
/**
|
|
22
|
-
* get the row id
|
|
23
|
-
*/
|
|
24
|
-
getRowId?: (row: TData) => string;
|
|
25
|
-
/**
|
|
26
|
-
* selected row id to use for row selection
|
|
27
|
-
*/
|
|
28
|
-
selectedRowId?: string;
|
|
29
|
-
/**
|
|
30
|
-
* loading state
|
|
31
|
-
*/
|
|
32
|
-
isLoading?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* text to display when there are no results
|
|
35
|
-
*/
|
|
36
|
-
emptyText?: string;
|
|
37
|
-
onClick?: (row: TData) => void;
|
|
38
|
-
}
|
|
39
|
-
export declare const DataTable: <TData, TValue>({ columns, data, pagination, gotoNextPage, gotoPreviousPage, getRowId, selectedRowId, isLoading, emptyText, onClick, }: DataTableProps<TData, TValue>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ScoringEntityType } from '@mastra/core/scores';
|
|
2
|
-
export interface ScorerListProps {
|
|
3
|
-
entityId: string;
|
|
4
|
-
entityType: ScoringEntityType;
|
|
5
|
-
}
|
|
6
|
-
export declare const ScorerList: ({ entityId, entityType }: ScorerListProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare const ScorerSkeleton: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from '../../node_modules/@types/react';
|
|
2
|
-
import { ChatProps, ModelSettings } from '../types';
|
|
3
|
-
export declare function MastraNetworkRuntimeProvider({ children, agentId, initialMessages, memory, threadId, modelSettings, }: Readonly<{
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
}> & Omit<ChatProps, 'settings'> & {
|
|
6
|
-
modelSettings: ModelSettings;
|
|
7
|
-
}): import("react/jsx-runtime").JSX.Element;
|