@mastra/playground-ui 5.0.1-alpha.1 → 5.0.1-alpha.3
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/agent-traces.d.ts +2 -4
- package/dist/domains/networks/index.d.ts +1 -0
- package/dist/domains/networks/network-context.d.ts +13 -0
- package/dist/domains/traces/context/trace-context.d.ts +0 -2
- package/dist/domains/traces/trace-details.d.ts +1 -1
- package/dist/domains/traces/trace-span-details.d.ts +1 -1
- package/dist/domains/traces/trace-span-view.d.ts +4 -6
- package/dist/domains/traces/traces-sidebar.d.ts +1 -4
- package/dist/domains/traces/utils/getSpanVariant.d.ts +4 -0
- package/dist/domains/traces/utils.d.ts +1 -1
- package/dist/domains/workflows/workflow/workflow-traces.d.ts +1 -4
- package/dist/ds/components/TraceTree/Span.d.ts +22 -1
- package/dist/ds/components/TraceTree/Trace.d.ts +4 -1
- package/dist/ds/icons/LatencyIcon.d.ts +3 -0
- package/dist/ds/icons/index.d.ts +1 -0
- package/dist/index.cjs.js +489 -491
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +488 -493
- package/dist/index.es.js.map +1 -1
- package/dist/lib/mastra-client.d.ts +3 -0
- package/dist/services/network-runtime-provider.d.ts +1 -1
- package/package.json +3 -3
- package/dist/domains/traces/trace-tree-view.d.ts +0 -6
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from '../../../../node_modules/@types/react';
|
|
2
|
-
|
|
3
1
|
export interface AgentTracesProps {
|
|
4
2
|
agentName: string;
|
|
5
3
|
baseUrl: string;
|
|
6
|
-
|
|
4
|
+
className?: string;
|
|
7
5
|
}
|
|
8
|
-
export declare function AgentTraces({ agentName, baseUrl,
|
|
6
|
+
export declare function AgentTraces({ agentName, baseUrl, className }: AgentTracesProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from '../../../node_modules/@types/react';
|
|
2
|
+
import { ModelSettings } from '../../types';
|
|
3
|
+
|
|
4
|
+
type NetworkContextType = {
|
|
5
|
+
modelSettings: ModelSettings;
|
|
6
|
+
setModelSettings: React.Dispatch<React.SetStateAction<ModelSettings>>;
|
|
7
|
+
resetModelSettings: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const NetworkContext: import('../../../node_modules/@types/react').Context<NetworkContextType>;
|
|
10
|
+
export declare function NetworkProvider({ children }: {
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -13,8 +13,6 @@ type TraceContextType = {
|
|
|
13
13
|
prevTrace: () => void;
|
|
14
14
|
span: Span | null;
|
|
15
15
|
setSpan: React.Dispatch<React.SetStateAction<Span | null>>;
|
|
16
|
-
openDetail: boolean;
|
|
17
|
-
setOpenDetail: React.Dispatch<React.SetStateAction<boolean>>;
|
|
18
16
|
clearData: () => void;
|
|
19
17
|
};
|
|
20
18
|
export declare const TraceContext: import('../../../../node_modules/@types/react').Context<TraceContextType>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function TraceDetails(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function TraceDetails(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function SpanDetail(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function SpanDetail(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { Span
|
|
1
|
+
import { Span } from './types';
|
|
2
2
|
|
|
3
|
-
export
|
|
4
|
-
tree: SpanNode[];
|
|
5
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default function SpanView({ trace }: {
|
|
3
|
+
export interface SpanViewProps {
|
|
7
4
|
trace: Span[];
|
|
8
|
-
}
|
|
5
|
+
}
|
|
6
|
+
export default function SpanView({ trace }: SpanViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from '../../../node_modules/@types/react';
|
|
2
|
-
|
|
3
1
|
export interface TracesSidebarProps {
|
|
4
2
|
className?: string;
|
|
5
3
|
onResize?: (width: number) => void;
|
|
6
4
|
width: number;
|
|
7
|
-
children: ReactNode;
|
|
8
5
|
}
|
|
9
|
-
export declare const TracesSidebar: ({
|
|
6
|
+
export declare const TracesSidebar: ({ onResize }: TracesSidebarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,7 +9,7 @@ import { RefinedTrace, Span } from './types';
|
|
|
9
9
|
export declare function formatDuration(duration: number, fixedPoint?: number): string;
|
|
10
10
|
export declare function formatOtelTimestamp(otelTimestamp: number): string;
|
|
11
11
|
export declare function formatOtelTimestamp2(otelTimestamp: number): string;
|
|
12
|
-
export declare function transformKey(key: string): string
|
|
12
|
+
export declare function transformKey(key: string): string;
|
|
13
13
|
export declare function cleanString(string: string): string;
|
|
14
14
|
export declare const refineTraces: (traces: Span[], isWorkflow?: boolean) => RefinedTrace[];
|
|
15
15
|
export declare const allowedAiSpanAttributes: string[];
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from '../../../../node_modules/@types/react';
|
|
2
|
-
|
|
3
1
|
export interface WorkflowTracesProps {
|
|
4
2
|
workflowName: string;
|
|
5
3
|
baseUrl: string;
|
|
6
|
-
sidebarChild: ReactNode;
|
|
7
4
|
}
|
|
8
|
-
export declare function WorkflowTraces({ workflowName, baseUrl
|
|
5
|
+
export declare function WorkflowTraces({ workflowName, baseUrl }: WorkflowTracesProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,5 +8,26 @@ export interface SpanProps {
|
|
|
8
8
|
spans?: React.ReactNode;
|
|
9
9
|
isRoot?: boolean;
|
|
10
10
|
onClick?: () => void;
|
|
11
|
+
isActive?: boolean;
|
|
11
12
|
}
|
|
12
|
-
export declare const
|
|
13
|
+
export declare const spanIconMap: {
|
|
14
|
+
tool: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
agent: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
workflow: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
memory: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
rag: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
storage: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
eval: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
other: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
};
|
|
23
|
+
export declare const spanVariantClasses: {
|
|
24
|
+
tool: string;
|
|
25
|
+
agent: string;
|
|
26
|
+
workflow: string;
|
|
27
|
+
memory: string;
|
|
28
|
+
rag: string;
|
|
29
|
+
storage: string;
|
|
30
|
+
eval: string;
|
|
31
|
+
other: string;
|
|
32
|
+
};
|
|
33
|
+
export declare const Span: ({ children, durationMs, variant, tokenCount, spans, isRoot, onClick, isActive }: SpanProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from '../../../../node_modules/@types/react';
|
|
2
|
+
import { SpanProps } from './Span';
|
|
2
3
|
|
|
3
4
|
export interface TraceProps {
|
|
4
5
|
name: string;
|
|
@@ -6,5 +7,7 @@ export interface TraceProps {
|
|
|
6
7
|
durationMs: number;
|
|
7
8
|
tokenCount?: number;
|
|
8
9
|
onClick?: () => void;
|
|
10
|
+
variant: SpanProps['variant'];
|
|
11
|
+
isActive?: boolean;
|
|
9
12
|
}
|
|
10
|
-
export declare const Trace: ({ name, spans, durationMs, tokenCount, onClick }: TraceProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const Trace: ({ name, spans, durationMs, tokenCount, onClick, variant, isActive }: TraceProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/ds/icons/index.d.ts
CHANGED