@mastra/playground-ui 28.0.0 → 28.0.1-alpha.1
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 +32 -0
- package/dist/index.cjs.js +45 -125
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +5 -0
- package/dist/index.es.js +46 -126
- package/dist/index.es.js.map +1 -1
- package/dist/src/domains/traces/components/traces-list-view.d.ts +4 -6
- package/dist/src/domains/traces/hooks/use-traces.d.ts +2 -33
- package/dist/src/domains/traces/trace-filters.d.ts +1 -1
- package/dist/src/domains/traces/utils/index.d.ts +0 -1
- package/dist/src/ds/components/DataList/TracesDataList/traces-data-list-cells.d.ts +5 -0
- package/dist/src/ds/components/DataList/TracesDataList/traces-data-list.d.ts +4 -1
- package/dist/src/ds/components/DataList/data-list-top-cell.d.ts +1 -1
- package/dist/src/lib/query-utils.d.ts +8 -0
- package/package.json +6 -6
- package/dist/src/domains/traces/utils/group-traces-by-thread.d.ts +0 -20
package/dist/index.css
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -14,7 +14,7 @@ import { tags } from '@lezer/highlight';
|
|
|
14
14
|
import { draculaInit } from '@uiw/codemirror-theme-dracula';
|
|
15
15
|
import ReactCodeMirror from '@uiw/react-codemirror';
|
|
16
16
|
import { autocompletion } from '@codemirror/autocomplete';
|
|
17
|
-
import { CheckIcon as CheckIcon$1, CopyIcon, Wand2, ShieldX, LogIn, Check, ChevronsUpDown, Search, X, ChevronDown, Circle, TriangleAlertIcon, SearchIcon, XIcon, TrendingUpIcon, TrendingDownIcon, EllipsisVerticalIcon, SaveIcon, Trash2Icon, LockIcon, ListFilterPlusIcon, ArrowLeftIcon, FilterIcon, PlusIcon,
|
|
17
|
+
import { CheckIcon as CheckIcon$1, CopyIcon, Wand2, ShieldX, LogIn, Check, ChevronsUpDown, Search, X, ChevronDown, Circle, TriangleAlertIcon, SearchIcon, XIcon, TrendingUpIcon, TrendingDownIcon, EllipsisVerticalIcon, SaveIcon, Trash2Icon, LockIcon, ListFilterPlusIcon, ArrowLeftIcon, FilterIcon, PlusIcon, ChevronRightIcon, Monitor, Sun, Moon, CalendarIcon, CircleAlertIcon, InfoIcon as InfoIcon$1, ArrowRightIcon, Type, Hash, ToggleLeft, AlignLeft, Braces, List, MenuIcon, PanelRightIcon, KeyboardIcon, AlignLeftIcon, AlignJustifyIcon, ArrowUpIcon, ArrowDownIcon, ChevronsRightIcon, ChevronLeftIcon, ClockIcon, BanIcon, FileTextIcon, OctagonAlertIcon, LightbulbIcon, ChevronRight, Folder, File, ListTreeIcon, CornerDownRightIcon, AlertTriangle, CircleXIcon, ExpandIcon, ExternalLinkIcon, Link2Icon, Ban, ListX, ChevronsLeft, ChevronsRight, ChevronLeft, Text, TextSearch, EqualNot, Equal, Plus, Component, ArrowRight, ArrowLeft, LogsIcon as LogsIcon$1, EyeIcon, GaugeIcon, BrainIcon, ChevronUpIcon, ChevronDownIcon, ChevronsUpIcon, ChevronsDownIcon, FoldVerticalIcon, UnfoldVerticalIcon, ChevronsDownUpIcon, ChevronsUpDownIcon, CircleGaugeIcon, FileInputIcon, FileOutputIcon, BracesIcon, CircleSlashIcon } from 'lucide-react';
|
|
18
18
|
import { toast as toast$1, Toaster as Toaster$1 } from 'sonner';
|
|
19
19
|
import { useMastraClient } from '@mastra/react';
|
|
20
20
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
@@ -8605,7 +8605,7 @@ function PickMultiMenuItem({ field, tokens, onChange, open, onToggle, onClose })
|
|
|
8605
8605
|
});
|
|
8606
8606
|
},
|
|
8607
8607
|
children: [
|
|
8608
|
-
open && /* @__PURE__ */ jsx(
|
|
8608
|
+
open && /* @__PURE__ */ jsx(ChevronRightIcon, { className: "h-4 w-4 text-neutral3 shrink-0" }),
|
|
8609
8609
|
/* @__PURE__ */ jsx("span", { className: "truncate", children: field.label }),
|
|
8610
8610
|
!open && /* @__PURE__ */ jsx(ChevronRightIcon, { className: "h-4 w-4 ml-auto text-neutral3 shrink-0" })
|
|
8611
8611
|
]
|
|
@@ -13206,6 +13206,12 @@ function getShortId(id) {
|
|
|
13206
13206
|
function TracesDataListIdCell({ traceId }) {
|
|
13207
13207
|
return /* @__PURE__ */ jsx(DataListCell, { height: "compact", className: "text-ui-smd font-mono text-neutral3", children: getShortId(traceId) });
|
|
13208
13208
|
}
|
|
13209
|
+
function TracesDataListKindCell({ parentSpanId }) {
|
|
13210
|
+
const isRoot = parentSpanId == null;
|
|
13211
|
+
const Icon = isRoot ? ListTreeIcon : CornerDownRightIcon;
|
|
13212
|
+
const label = isRoot ? "Trace" : "Subtrace";
|
|
13213
|
+
return /* @__PURE__ */ jsx(DataListCell, { height: "compact", className: "flex items-center justify-center", children: /* @__PURE__ */ jsx("span", { title: label, "aria-label": label, className: "inline-flex", children: /* @__PURE__ */ jsx(Icon, { className: cn("shrink-0", isRoot ? "size-4 text-neutral3" : "size-3 text-neutral3"), "aria-hidden": true }) }) });
|
|
13214
|
+
}
|
|
13209
13215
|
function TracesDataListDateCell({ timestamp }) {
|
|
13210
13216
|
const date = toDate$2(timestamp);
|
|
13211
13217
|
return /* @__PURE__ */ jsx(DataListCell, { height: "compact", className: "text-ui-smd text-neutral2", children: date ? isToday$1(date) ? "Today" : format(date, "MMM dd") : "-" });
|
|
@@ -13263,12 +13269,14 @@ function TracesDataListRoot(props) {
|
|
|
13263
13269
|
const TracesDataList = Object.assign(TracesDataListRoot, {
|
|
13264
13270
|
Top: DataListTop,
|
|
13265
13271
|
TopCell: DataListTopCell,
|
|
13272
|
+
TopCellWithTooltip: DataListTopCellWithTooltip,
|
|
13266
13273
|
RowButton: DataListRowButton,
|
|
13267
13274
|
NoMatch: DataListNoMatch,
|
|
13268
13275
|
Subheader: DataListSubheader,
|
|
13269
13276
|
SubHeading: DataListSubHeading,
|
|
13270
13277
|
Spacer: DataListSpacer,
|
|
13271
13278
|
IdCell: TracesDataListIdCell,
|
|
13279
|
+
KindCell: TracesDataListKindCell,
|
|
13272
13280
|
DateCell: TracesDataListDateCell,
|
|
13273
13281
|
TimeCell: TracesDataListTimeCell,
|
|
13274
13282
|
NameCell: TracesDataListNameCell,
|
|
@@ -15429,6 +15437,12 @@ function is403ForbiddenError(error) {
|
|
|
15429
15437
|
}
|
|
15430
15438
|
return false;
|
|
15431
15439
|
}
|
|
15440
|
+
function isBranchesNotSupportedError(error) {
|
|
15441
|
+
if (!error || typeof error !== "object" || !("message" in error)) return false;
|
|
15442
|
+
const message = error.message;
|
|
15443
|
+
if (typeof message !== "string") return false;
|
|
15444
|
+
return message.includes("does not support listing trace branches");
|
|
15445
|
+
}
|
|
15432
15446
|
function isNonRetryableError(error) {
|
|
15433
15447
|
if (!error || typeof error !== "object") return false;
|
|
15434
15448
|
if ("status" in error) {
|
|
@@ -18087,7 +18101,7 @@ const TRACE_STATUS_OPTIONS = [
|
|
|
18087
18101
|
{ label: "Success", value: "success" },
|
|
18088
18102
|
{ label: "Error", value: "error" }
|
|
18089
18103
|
];
|
|
18090
|
-
const TRACE_SYNTHETIC_FILTER_FIELD_IDS = ["rootEntityType", "status"
|
|
18104
|
+
const TRACE_SYNTHETIC_FILTER_FIELD_IDS = ["rootEntityType", "status"];
|
|
18091
18105
|
const TRACE_ROOT_ENTITY_TYPE_PARAM = "rootEntityType";
|
|
18092
18106
|
const TRACE_STATUS_PARAM = "status";
|
|
18093
18107
|
const TRACE_LIST_MODE_PARAM = "listMode";
|
|
@@ -18186,17 +18200,6 @@ function createTracePropertyFilterFields({
|
|
|
18186
18200
|
placeholder: "Choose entity type",
|
|
18187
18201
|
emptyText: "No entity types."
|
|
18188
18202
|
},
|
|
18189
|
-
{
|
|
18190
|
-
id: "mode",
|
|
18191
|
-
label: "List mode",
|
|
18192
|
-
kind: "pick-multi",
|
|
18193
|
-
searchable: false,
|
|
18194
|
-
options: TRACE_LIST_MODE_OPTIONS.map((o) => ({ label: o.label, value: o.value })),
|
|
18195
|
-
placeholder: "Choose list mode",
|
|
18196
|
-
emptyText: "No list modes.",
|
|
18197
|
-
omitAnyOption: true,
|
|
18198
|
-
defaultValue: "traces"
|
|
18199
|
-
},
|
|
18200
18203
|
{
|
|
18201
18204
|
id: "entityName",
|
|
18202
18205
|
label: "Primitive Name",
|
|
@@ -18255,17 +18258,15 @@ function createTracePropertyFilterFields({
|
|
|
18255
18258
|
{ id: "experimentId", label: "Experiment ID", kind: "text" }
|
|
18256
18259
|
];
|
|
18257
18260
|
const byLabel = (a, b) => a.label.localeCompare(b.label);
|
|
18258
|
-
const
|
|
18259
|
-
const pickMulti = fields.filter((f) => f.kind === "pick-multi" && f.id !== "mode").sort(byLabel);
|
|
18261
|
+
const pickMulti = fields.filter((f) => f.kind === "pick-multi").sort(byLabel);
|
|
18260
18262
|
const text = fields.filter((f) => f.kind === "text").sort(byLabel);
|
|
18261
|
-
return [...
|
|
18263
|
+
return [...pickMulti, ...text];
|
|
18262
18264
|
}
|
|
18263
18265
|
function getTracePropertyFilterTokens(searchParams) {
|
|
18264
18266
|
const tokens = [];
|
|
18265
18267
|
const paramToFieldId = /* @__PURE__ */ new Map([
|
|
18266
18268
|
[TRACE_ROOT_ENTITY_TYPE_PARAM, "rootEntityType"],
|
|
18267
|
-
[TRACE_STATUS_PARAM, "status"]
|
|
18268
|
-
[TRACE_LIST_MODE_PARAM, "mode"]
|
|
18269
|
+
[TRACE_STATUS_PARAM, "status"]
|
|
18269
18270
|
]);
|
|
18270
18271
|
for (const fieldId of TRACE_PROPERTY_FILTER_FIELD_IDS) {
|
|
18271
18272
|
paramToFieldId.set(TRACE_PROPERTY_FILTER_PARAM_BY_FIELD[fieldId], fieldId);
|
|
@@ -18312,7 +18313,6 @@ function getPreservedTraceFilterParams(searchParams) {
|
|
|
18312
18313
|
function applyTracePropertyFilterTokens(params, tokens) {
|
|
18313
18314
|
params.delete(TRACE_ROOT_ENTITY_TYPE_PARAM);
|
|
18314
18315
|
params.delete(TRACE_STATUS_PARAM);
|
|
18315
|
-
params.delete(TRACE_LIST_MODE_PARAM);
|
|
18316
18316
|
for (const fieldId of TRACE_PROPERTY_FILTER_FIELD_IDS) {
|
|
18317
18317
|
params.delete(TRACE_PROPERTY_FILTER_PARAM_BY_FIELD[fieldId]);
|
|
18318
18318
|
}
|
|
@@ -18325,10 +18325,6 @@ function applyTracePropertyFilterTokens(params, tokens) {
|
|
|
18325
18325
|
params.set(TRACE_STATUS_PARAM, token.value);
|
|
18326
18326
|
continue;
|
|
18327
18327
|
}
|
|
18328
|
-
if (token.fieldId === "mode" && typeof token.value === "string") {
|
|
18329
|
-
params.set(TRACE_LIST_MODE_PARAM, token.value);
|
|
18330
|
-
continue;
|
|
18331
|
-
}
|
|
18332
18328
|
const param = TRACE_PROPERTY_FILTER_PARAM_BY_FIELD[token.fieldId];
|
|
18333
18329
|
if (!param) continue;
|
|
18334
18330
|
if (token.fieldId === "tags" && Array.isArray(token.value)) {
|
|
@@ -20005,34 +20001,7 @@ function TracesLayout({
|
|
|
20005
20001
|
);
|
|
20006
20002
|
}
|
|
20007
20003
|
|
|
20008
|
-
|
|
20009
|
-
const threadMap = /* @__PURE__ */ new Map();
|
|
20010
|
-
const ungrouped = [];
|
|
20011
|
-
for (const trace of traces) {
|
|
20012
|
-
if (trace.threadId) {
|
|
20013
|
-
const existing = threadMap.get(trace.threadId);
|
|
20014
|
-
if (existing) {
|
|
20015
|
-
existing.push(trace);
|
|
20016
|
-
} else {
|
|
20017
|
-
threadMap.set(trace.threadId, [trace]);
|
|
20018
|
-
}
|
|
20019
|
-
} else {
|
|
20020
|
-
ungrouped.push(trace);
|
|
20021
|
-
}
|
|
20022
|
-
}
|
|
20023
|
-
const groups = Array.from(threadMap.entries()).map(([threadId, traces2]) => ({
|
|
20024
|
-
threadId,
|
|
20025
|
-
traces: traces2
|
|
20026
|
-
}));
|
|
20027
|
-
groups.sort((a, b) => {
|
|
20028
|
-
const aLatest = Math.max(...a.traces.map((t) => new Date(t.createdAt).getTime()));
|
|
20029
|
-
const bLatest = Math.max(...b.traces.map((t) => new Date(t.createdAt).getTime()));
|
|
20030
|
-
return bLatest - aLatest;
|
|
20031
|
-
});
|
|
20032
|
-
return { groups, ungrouped };
|
|
20033
|
-
}
|
|
20034
|
-
|
|
20035
|
-
const COLUMNS$1 = "7rem 6rem 9rem 14rem minmax(8rem,1fr) 14rem 6rem";
|
|
20004
|
+
const COLUMNS$1 = "4rem 6rem 9rem 14rem minmax(8rem,1fr) 14rem 6rem";
|
|
20036
20005
|
const ROW_HEIGHT$1 = 36;
|
|
20037
20006
|
const OVERSCAN$1 = 8;
|
|
20038
20007
|
function TracesListView({
|
|
@@ -20044,65 +20013,11 @@ function TracesListView({
|
|
|
20044
20013
|
filtersApplied,
|
|
20045
20014
|
featuredTraceId,
|
|
20046
20015
|
featuredSpanId,
|
|
20047
|
-
onTraceClick
|
|
20048
|
-
groupByThread,
|
|
20049
|
-
threadTitles
|
|
20016
|
+
onTraceClick
|
|
20050
20017
|
}) {
|
|
20051
20018
|
const scrollRef = useRef(null);
|
|
20052
|
-
const items = useMemo(() => {
|
|
20053
|
-
if (traces.length === 0) return [];
|
|
20054
|
-
if (!groupByThread) {
|
|
20055
|
-
return traces.map((trace) => ({ kind: "row", key: `${trace.traceId}:${trace.spanId ?? ""}`, trace }));
|
|
20056
|
-
}
|
|
20057
|
-
const { groups, ungrouped } = groupTracesByThread(traces);
|
|
20058
|
-
const result = [];
|
|
20059
|
-
for (const group of groups) {
|
|
20060
|
-
result.push({
|
|
20061
|
-
kind: "subheader",
|
|
20062
|
-
key: `header-${group.threadId}`,
|
|
20063
|
-
node: /* @__PURE__ */ jsxs(TracesDataList.SubHeading, { className: "flex gap-2", children: [
|
|
20064
|
-
/* @__PURE__ */ jsx("span", { className: "uppercase", children: "Thread" }),
|
|
20065
|
-
threadTitles?.[group.threadId] && /* @__PURE__ */ jsxs("b", { children: [
|
|
20066
|
-
"'",
|
|
20067
|
-
threadTitles[group.threadId],
|
|
20068
|
-
"'"
|
|
20069
|
-
] }),
|
|
20070
|
-
/* @__PURE__ */ jsxs("b", { children: [
|
|
20071
|
-
"# ",
|
|
20072
|
-
group.threadId
|
|
20073
|
-
] }),
|
|
20074
|
-
/* @__PURE__ */ jsxs("span", { className: "text-neutral2", children: [
|
|
20075
|
-
"(",
|
|
20076
|
-
group.traces.length,
|
|
20077
|
-
")"
|
|
20078
|
-
] })
|
|
20079
|
-
] })
|
|
20080
|
-
});
|
|
20081
|
-
for (const trace of group.traces) {
|
|
20082
|
-
result.push({ kind: "row", key: `${trace.traceId}:${trace.spanId ?? ""}`, trace });
|
|
20083
|
-
}
|
|
20084
|
-
}
|
|
20085
|
-
if (ungrouped.length > 0) {
|
|
20086
|
-
result.push({
|
|
20087
|
-
kind: "subheader",
|
|
20088
|
-
key: "header-ungrouped",
|
|
20089
|
-
node: /* @__PURE__ */ jsxs(TracesDataList.SubHeading, { className: "flex gap-2 uppercase", children: [
|
|
20090
|
-
/* @__PURE__ */ jsx("span", { children: "No thread" }),
|
|
20091
|
-
/* @__PURE__ */ jsxs("span", { className: "text-neutral2", children: [
|
|
20092
|
-
"(",
|
|
20093
|
-
ungrouped.length,
|
|
20094
|
-
")"
|
|
20095
|
-
] })
|
|
20096
|
-
] })
|
|
20097
|
-
});
|
|
20098
|
-
for (const trace of ungrouped) {
|
|
20099
|
-
result.push({ kind: "row", key: `${trace.traceId}:${trace.spanId ?? ""}`, trace });
|
|
20100
|
-
}
|
|
20101
|
-
}
|
|
20102
|
-
return result;
|
|
20103
|
-
}, [traces, groupByThread, threadTitles]);
|
|
20104
20019
|
const virtualizer = useVirtualizer({
|
|
20105
|
-
count:
|
|
20020
|
+
count: traces.length,
|
|
20106
20021
|
getScrollElement: () => scrollRef.current,
|
|
20107
20022
|
estimateSize: () => ROW_HEIGHT$1,
|
|
20108
20023
|
overscan: OVERSCAN$1
|
|
@@ -20123,7 +20038,22 @@ function TracesListView({
|
|
|
20123
20038
|
const paddingBottom = virtualItems.length > 0 ? Math.max(0, totalSize - (virtualItems[virtualItems.length - 1]?.end ?? 0)) : 0;
|
|
20124
20039
|
return /* @__PURE__ */ jsxs(TracesDataList, { columns: COLUMNS$1, scrollRef, className: "min-w-0", children: [
|
|
20125
20040
|
/* @__PURE__ */ jsxs(TracesDataList.Top, { children: [
|
|
20126
|
-
/* @__PURE__ */ jsx(
|
|
20041
|
+
/* @__PURE__ */ jsx(
|
|
20042
|
+
TracesDataList.TopCellWithTooltip,
|
|
20043
|
+
{
|
|
20044
|
+
tooltip: /* @__PURE__ */ jsxs("div", { className: "grid gap-1", children: [
|
|
20045
|
+
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1.5", children: [
|
|
20046
|
+
/* @__PURE__ */ jsx(ListTreeIcon, { className: "size-4 shrink-0", "aria-hidden": true }),
|
|
20047
|
+
"Trace"
|
|
20048
|
+
] }),
|
|
20049
|
+
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1.5", children: [
|
|
20050
|
+
/* @__PURE__ */ jsx(CornerDownRightIcon, { className: "size-4 shrink-0", "aria-hidden": true }),
|
|
20051
|
+
"Subtrace"
|
|
20052
|
+
] })
|
|
20053
|
+
] }),
|
|
20054
|
+
children: "Level"
|
|
20055
|
+
}
|
|
20056
|
+
),
|
|
20127
20057
|
/* @__PURE__ */ jsx(TracesDataList.TopCell, { children: "Date" }),
|
|
20128
20058
|
/* @__PURE__ */ jsx(TracesDataList.TopCell, { children: "Time" }),
|
|
20129
20059
|
/* @__PURE__ */ jsx(TracesDataList.TopCell, { children: "Name" }),
|
|
@@ -20131,7 +20061,7 @@ function TracesListView({
|
|
|
20131
20061
|
/* @__PURE__ */ jsx(TracesDataList.TopCell, { children: "Entity" }),
|
|
20132
20062
|
/* @__PURE__ */ jsx(TracesDataList.TopCell, { children: "Status" })
|
|
20133
20063
|
] }),
|
|
20134
|
-
|
|
20064
|
+
traces.length === 0 ? /* @__PURE__ */ jsx(
|
|
20135
20065
|
TracesDataList.NoMatch,
|
|
20136
20066
|
{
|
|
20137
20067
|
message: filtersApplied ? "No traces found for applied filters" : "No traces found yet"
|
|
@@ -20139,12 +20069,8 @@ function TracesListView({
|
|
|
20139
20069
|
) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20140
20070
|
/* @__PURE__ */ jsx(TracesDataList.Spacer, { height: paddingTop }),
|
|
20141
20071
|
virtualItems.map((vi) => {
|
|
20142
|
-
const
|
|
20143
|
-
if (!
|
|
20144
|
-
if (item.kind === "subheader") {
|
|
20145
|
-
return /* @__PURE__ */ jsx(TracesDataList.Subheader, { ref: virtualizer.measureElement, "data-index": vi.index, children: item.node }, item.key);
|
|
20146
|
-
}
|
|
20147
|
-
const trace = item.trace;
|
|
20072
|
+
const trace = traces[vi.index];
|
|
20073
|
+
if (!trace) return null;
|
|
20148
20074
|
const isFeatured = trace.traceId === featuredTraceId && (featuredSpanId == null || trace.spanId === featuredSpanId);
|
|
20149
20075
|
const displayDate = trace.startedAt ?? trace.createdAt;
|
|
20150
20076
|
const entityName = trace.entityName || trace.entityId || trace.attributes?.agentId || trace.attributes?.workflowId;
|
|
@@ -20156,7 +20082,7 @@ function TracesListView({
|
|
|
20156
20082
|
onClick: () => onTraceClick(trace),
|
|
20157
20083
|
className: cn(isFeatured && "bg-surface4"),
|
|
20158
20084
|
children: [
|
|
20159
|
-
/* @__PURE__ */ jsx(TracesDataList.
|
|
20085
|
+
/* @__PURE__ */ jsx(TracesDataList.KindCell, { parentSpanId: trace.parentSpanId }),
|
|
20160
20086
|
/* @__PURE__ */ jsx(TracesDataList.DateCell, { timestamp: displayDate }),
|
|
20161
20087
|
/* @__PURE__ */ jsx(TracesDataList.TimeCell, { timestamp: displayDate }),
|
|
20162
20088
|
/* @__PURE__ */ jsx(TracesDataList.NameCell, { name: trace.name }),
|
|
@@ -20165,7 +20091,7 @@ function TracesListView({
|
|
|
20165
20091
|
/* @__PURE__ */ jsx(TracesDataList.StatusCell, { status: trace.attributes?.status })
|
|
20166
20092
|
]
|
|
20167
20093
|
},
|
|
20168
|
-
trace.traceId
|
|
20094
|
+
`${trace.traceId}:${trace.spanId ?? ""}`
|
|
20169
20095
|
);
|
|
20170
20096
|
}),
|
|
20171
20097
|
/* @__PURE__ */ jsx(TracesDataList.Spacer, { height: paddingBottom }),
|
|
@@ -20414,13 +20340,7 @@ function selectUniqueTraces(data) {
|
|
|
20414
20340
|
seen.add(key);
|
|
20415
20341
|
return true;
|
|
20416
20342
|
});
|
|
20417
|
-
|
|
20418
|
-
for (const page of data.pages) {
|
|
20419
|
-
if (page.threadTitles) {
|
|
20420
|
-
Object.assign(threadTitles, page.threadTitles);
|
|
20421
|
-
}
|
|
20422
|
-
}
|
|
20423
|
-
return { spans, threadTitles };
|
|
20343
|
+
return { spans };
|
|
20424
20344
|
}
|
|
20425
20345
|
const useTraces = ({ filters, listMode = "traces" }) => {
|
|
20426
20346
|
const client = useMastraClient();
|
|
@@ -21583,5 +21503,5 @@ function useLogsListNavigation(logs, featuredLogId, onFeaturedChange, featuredTr
|
|
|
21583
21503
|
};
|
|
21584
21504
|
}
|
|
21585
21505
|
|
|
21586
|
-
export { AddField, AgentCoinIcon, AgentIcon, AgentNetworkCoinIcon, AiIcon, AlertDialog, AmazonIcon, AnthropicChatIcon, AnthropicMessagesIcon, ApiIcon, Avatar, AzureIcon, Badge, BarListContent, BorderColors, BorderRadius, BranchIcon, BrandLoader, Breadcrumb, Button, ButtonWithTooltip, ButtonsGroup, ButtonsGroupSeparator, ButtonsGroupText, CHART_COLORS, CONTEXT_FIELD_IDS, Card, CardContent, CardDescription, CardFooter, CardHeader, CardHeading, CardTitle, Cell, CheckIcon, Checkbox, ChevronIcon, Chip, ChipsGroup, CodeBlock$1 as CodeBlock, CodeDiff, CodeEditor, CohereIcon, Collapsible, CollapsibleContent, CollapsiblePanel, CollapsibleTrigger, Colors, Column, Columns, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CommitIcon, ContentBlock, ContentBlocks, CopyButton, CrossIcon, Crumb, DATE_PRESETS, DEFAULT_LOGS_FILTERS_STORAGE_KEY, DEFAULT_TRACE_FILTERS_STORAGE_KEY, DashboardCard, DataCodeSection, DataDetailsPanel, DataKeysAndValues, DataList, DataListSkeleton, DataPanel, DatasetsIcon, DatePicker, DateRangeSelector, DateTimeCell, DateTimePicker, DateTimePickerContent, DateTimeRangePicker, DbIcon, DebugIcon, DefaultTrigger, DeploymentIcon, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DividerIcon, DocsIcon, DropdownMenu, EXTENSION_TO_MIME, ElementSelect, EmptyState, Entity, EntityContent, EntityDescription, EntityHeader, EntityIcon, EntityList, EntityListPageLayout, EntityListSkeleton, EntityName, Entry, EntryCell, EntryList, EntryListSkeleton, EnvIcon, ErrorBoundary, ErrorState, ExperimentsIcon, Field, FieldBlock, FieldBlocksLayout, FieldDescription, FieldList, FieldName, FieldNullable, FieldOptional, FieldRemove, FieldType, FiltersIcon, FolderIcon, FontSizes, GithubCoinIcon, GithubIcon, Glows, GoogleIcon, GroqIcon, Header$1 as Header, HeaderAction, HeaderGroup, HeaderTitle, HomeIcon, HorizontalBars, HoverPopover, Icon, InfoIcon, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, ItemList, ItemListSkeleton, JSONSchemaForm, JudgeIcon, Kbd, KeyValueList, KpiCardView, LOGS_DATE_FROM_PARAM, LOGS_DATE_PRESET_PARAM, LOGS_DATE_PRESET_VALUES, LOGS_DATE_TO_PARAM, LOGS_PROPERTY_FILTER_FIELD_IDS, LOGS_PROPERTY_FILTER_PARAM_BY_FIELD, LOGS_ROOT_ENTITY_TYPES, LOGS_ROOT_ENTITY_TYPE_OPTIONS, LOGS_ROOT_ENTITY_TYPE_PARAM, LOG_LEVEL_OPTIONS, LOG_LEVEL_VALUES, Label, LatencyCardView, LatencyIcon, LineHeights, ListSearch, LogDetailsView, Logo, LogoWithoutText, LogsDataList, DataListSkeleton as LogsDataListSkeleton, LogsErrorContent, LogsIcon, LogsLayout, LogsListView, LogsToolbar, MainContentContent, MainContentLayout, MainHeader, MainSidebar, MainSidebarMobileTrigger, MainSidebarProvider, MainSidebarTrigger, MarkdownRenderer, MastraIcon, McpCoinIcon, McpServerIcon, MemoryCardView, MemoryIcon, MetricsCard, MetricsDataTable, MetricsFlexGrid, MetricsIcon, MetricsKpiCard, MetricsLineChart, MetricsLineChartTooltip, MetricsProvider, MistralIcon, ModelUsageCostCardView, MultiColumn, MultiCombobox, NestedFields, NetlifyIcon, NoDataPageLayout, NoLogsInfo, NoTracesInfo, Notice, OPERATORS, OPERATOR_LABELS, OpenAIIcon, OpenErrorsInLogsButton, OpenInTracesButton, OpenaiChatIcon, PageHeader, PageHeadingContext, PageLayout, PanelSeparator, PermissionDenied, PickMultiPanel, Popover, PopoverContent, PopoverTrigger, PrevNextNav, ProcessStepList, ProcessStepListItem, ProcessStepProgressBar, ProcessorIcon, PromptIcon, PropertyFilterActions, PropertyFilterApplied, PropertyFilterCreator, ROOT_ENTITY_TYPES, ROOT_ENTITY_TYPE_OPTIONS, RadioGroup, RadioGroupItem, RepoIcon, RequestContextIcon, Root$1 as Root, Row, RuleBuilder, RuleFieldSelect, RuleOperatorSelect, RuleRow, RuleValueInput, ScorersIcon, ScoresCardView, ScoresDataList, ScrollArea, ScrollBar, ScrollableContainer, SearchFieldBlock, Searchbar, SearchbarWrapper, Section, SectionCard, SectionRoot, Sections, Select, SelectContent, SelectDataFilter, SelectFieldBlock, SelectGroup, SelectItem, SelectTrigger, SelectValue, SessionExpired, SettingsIcon, SettingsRow, Shadows, SideDialog, Sizes, Skeleton, SkillIcon, SlashIcon, Slider, Spacings, SpanDataPanelView, SpanDetailsView, SpanTokenUsage, Spinner, StackedRunsBars, StatusBadge, SubSectionRoot, Switch, TRACE_ANCHOR_SPAN_ID_PARAM, TRACE_DATE_FROM_PARAM, TRACE_DATE_PRESET_PARAM, TRACE_DATE_PRESET_VALUES, TRACE_DATE_TO_PARAM, TRACE_LIST_MODE_OPTIONS, TRACE_LIST_MODE_PARAM, TRACE_LIST_MODE_VALUES, TRACE_PROPERTY_FILTER_FIELD_IDS, TRACE_PROPERTY_FILTER_PARAM_BY_FIELD, TRACE_ROOT_ENTITY_TYPE_PARAM, TRACE_STATUS_OPTIONS, TRACE_STATUS_PARAM, TRACE_STATUS_VALUES, TRACE_SYNTHETIC_FILTER_FIELD_IDS, Tab, TabContent, TabList, Table, Tabs, Tbody, TextAndIcon, TextFieldBlock, Textarea, Th, Thead, ThemeProvider, ThemeToggle, TimePicker, TimelineExpandCol, TimelineNameCol, TimelineStructureSign, TimelineTimingCol, Toaster, TokenUsageByAgentCardView, ToolCoinIcon, ToolsIcon, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TraceDataPanelView, TraceDetailsView, TraceIcon, TraceKeysAndValues, TraceTimeline, TraceTimelineSpan, TracesDataList, TracesErrorContent, TracesLayout, TracesListModeToggle, TracesListView, TracesToolbar, TracesVolumeCardView, Tree, Truncate, TsIcon, Txt, TxtCell, VARIABLE_PATTERN, VariablesIcon, WorkflowCoinIcon, WorkflowIcon, WorkspacesIcon, XGroqIcon, applyLogsPropertyFilterTokens, applyMetricsPropertyFilterTokens, applyTracePropertyFilterTokens, buildLogsDrilldownUrl, buildLogsListFilters, buildMetricsDimensionalFilter, buildTraceListFilters, buildTracesDrilldownUrl, buttonVariants, buttonsGroupVariants, clearSavedLogsFilters, clearSavedMetricsFilters, clearSavedTraceFilters, cn, comboboxStyles, countLeafRules, createDefaultRule, createDefaultRuleGroup, createField, createLogsPropertyFilterFields, createMetricsPropertyFilterFields, createTracePropertyFilterFields, createVariableAutocomplete, fieldsToJSONSchema, fileToBase64, flattenSchemaToVariables, focusRing, formElementFocus, formElementFocusWithin, formElementRadius, formElementSizes, formElementTransition, formatCompact, formatCost, formatHierarchicalSpans, formatJSON, generateDefaultValues, getAllSpanIds, getChildFieldOptions, getColumnTemplate, getFieldOptionAtPath, getFieldOptionsFromSchema, getFileContentType, getInputPreview, getIsLinkActive, getItemListColumnTemplate, getLogsPropertyFilterTokens, getMainContentContentClassName, getMetricsPropertyFilterTokens, getPreservedLogsFilterParams, getPreservedTraceFilterParams, getShortId$1 as getShortId, getSpanDescendantIds, getSpanTypeUi, getStatusIcon, getToNextEntryFn, getToNextItemFn, getToPreviousEntryFn, getToPreviousItemFn, getTokenLimitMessage, getTracePropertyFilterTokens,
|
|
21506
|
+
export { AddField, AgentCoinIcon, AgentIcon, AgentNetworkCoinIcon, AiIcon, AlertDialog, AmazonIcon, AnthropicChatIcon, AnthropicMessagesIcon, ApiIcon, Avatar, AzureIcon, Badge, BarListContent, BorderColors, BorderRadius, BranchIcon, BrandLoader, Breadcrumb, Button, ButtonWithTooltip, ButtonsGroup, ButtonsGroupSeparator, ButtonsGroupText, CHART_COLORS, CONTEXT_FIELD_IDS, Card, CardContent, CardDescription, CardFooter, CardHeader, CardHeading, CardTitle, Cell, CheckIcon, Checkbox, ChevronIcon, Chip, ChipsGroup, CodeBlock$1 as CodeBlock, CodeDiff, CodeEditor, CohereIcon, Collapsible, CollapsibleContent, CollapsiblePanel, CollapsibleTrigger, Colors, Column, Columns, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CommitIcon, ContentBlock, ContentBlocks, CopyButton, CrossIcon, Crumb, DATE_PRESETS, DEFAULT_LOGS_FILTERS_STORAGE_KEY, DEFAULT_TRACE_FILTERS_STORAGE_KEY, DashboardCard, DataCodeSection, DataDetailsPanel, DataKeysAndValues, DataList, DataListSkeleton, DataPanel, DatasetsIcon, DatePicker, DateRangeSelector, DateTimeCell, DateTimePicker, DateTimePickerContent, DateTimeRangePicker, DbIcon, DebugIcon, DefaultTrigger, DeploymentIcon, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DividerIcon, DocsIcon, DropdownMenu, EXTENSION_TO_MIME, ElementSelect, EmptyState, Entity, EntityContent, EntityDescription, EntityHeader, EntityIcon, EntityList, EntityListPageLayout, EntityListSkeleton, EntityName, Entry, EntryCell, EntryList, EntryListSkeleton, EnvIcon, ErrorBoundary, ErrorState, ExperimentsIcon, Field, FieldBlock, FieldBlocksLayout, FieldDescription, FieldList, FieldName, FieldNullable, FieldOptional, FieldRemove, FieldType, FiltersIcon, FolderIcon, FontSizes, GithubCoinIcon, GithubIcon, Glows, GoogleIcon, GroqIcon, Header$1 as Header, HeaderAction, HeaderGroup, HeaderTitle, HomeIcon, HorizontalBars, HoverPopover, Icon, InfoIcon, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, ItemList, ItemListSkeleton, JSONSchemaForm, JudgeIcon, Kbd, KeyValueList, KpiCardView, LOGS_DATE_FROM_PARAM, LOGS_DATE_PRESET_PARAM, LOGS_DATE_PRESET_VALUES, LOGS_DATE_TO_PARAM, LOGS_PROPERTY_FILTER_FIELD_IDS, LOGS_PROPERTY_FILTER_PARAM_BY_FIELD, LOGS_ROOT_ENTITY_TYPES, LOGS_ROOT_ENTITY_TYPE_OPTIONS, LOGS_ROOT_ENTITY_TYPE_PARAM, LOG_LEVEL_OPTIONS, LOG_LEVEL_VALUES, Label, LatencyCardView, LatencyIcon, LineHeights, ListSearch, LogDetailsView, Logo, LogoWithoutText, LogsDataList, DataListSkeleton as LogsDataListSkeleton, LogsErrorContent, LogsIcon, LogsLayout, LogsListView, LogsToolbar, MainContentContent, MainContentLayout, MainHeader, MainSidebar, MainSidebarMobileTrigger, MainSidebarProvider, MainSidebarTrigger, MarkdownRenderer, MastraIcon, McpCoinIcon, McpServerIcon, MemoryCardView, MemoryIcon, MetricsCard, MetricsDataTable, MetricsFlexGrid, MetricsIcon, MetricsKpiCard, MetricsLineChart, MetricsLineChartTooltip, MetricsProvider, MistralIcon, ModelUsageCostCardView, MultiColumn, MultiCombobox, NestedFields, NetlifyIcon, NoDataPageLayout, NoLogsInfo, NoTracesInfo, Notice, OPERATORS, OPERATOR_LABELS, OpenAIIcon, OpenErrorsInLogsButton, OpenInTracesButton, OpenaiChatIcon, PageHeader, PageHeadingContext, PageLayout, PanelSeparator, PermissionDenied, PickMultiPanel, Popover, PopoverContent, PopoverTrigger, PrevNextNav, ProcessStepList, ProcessStepListItem, ProcessStepProgressBar, ProcessorIcon, PromptIcon, PropertyFilterActions, PropertyFilterApplied, PropertyFilterCreator, ROOT_ENTITY_TYPES, ROOT_ENTITY_TYPE_OPTIONS, RadioGroup, RadioGroupItem, RepoIcon, RequestContextIcon, Root$1 as Root, Row, RuleBuilder, RuleFieldSelect, RuleOperatorSelect, RuleRow, RuleValueInput, ScorersIcon, ScoresCardView, ScoresDataList, ScrollArea, ScrollBar, ScrollableContainer, SearchFieldBlock, Searchbar, SearchbarWrapper, Section, SectionCard, SectionRoot, Sections, Select, SelectContent, SelectDataFilter, SelectFieldBlock, SelectGroup, SelectItem, SelectTrigger, SelectValue, SessionExpired, SettingsIcon, SettingsRow, Shadows, SideDialog, Sizes, Skeleton, SkillIcon, SlashIcon, Slider, Spacings, SpanDataPanelView, SpanDetailsView, SpanTokenUsage, Spinner, StackedRunsBars, StatusBadge, SubSectionRoot, Switch, TRACE_ANCHOR_SPAN_ID_PARAM, TRACE_DATE_FROM_PARAM, TRACE_DATE_PRESET_PARAM, TRACE_DATE_PRESET_VALUES, TRACE_DATE_TO_PARAM, TRACE_LIST_MODE_OPTIONS, TRACE_LIST_MODE_PARAM, TRACE_LIST_MODE_VALUES, TRACE_PROPERTY_FILTER_FIELD_IDS, TRACE_PROPERTY_FILTER_PARAM_BY_FIELD, TRACE_ROOT_ENTITY_TYPE_PARAM, TRACE_STATUS_OPTIONS, TRACE_STATUS_PARAM, TRACE_STATUS_VALUES, TRACE_SYNTHETIC_FILTER_FIELD_IDS, Tab, TabContent, TabList, Table, Tabs, Tbody, TextAndIcon, TextFieldBlock, Textarea, Th, Thead, ThemeProvider, ThemeToggle, TimePicker, TimelineExpandCol, TimelineNameCol, TimelineStructureSign, TimelineTimingCol, Toaster, TokenUsageByAgentCardView, ToolCoinIcon, ToolsIcon, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TraceDataPanelView, TraceDetailsView, TraceIcon, TraceKeysAndValues, TraceTimeline, TraceTimelineSpan, TracesDataList, TracesErrorContent, TracesLayout, TracesListModeToggle, TracesListView, TracesToolbar, TracesVolumeCardView, Tree, Truncate, TsIcon, Txt, TxtCell, VARIABLE_PATTERN, VariablesIcon, WorkflowCoinIcon, WorkflowIcon, WorkspacesIcon, XGroqIcon, applyLogsPropertyFilterTokens, applyMetricsPropertyFilterTokens, applyTracePropertyFilterTokens, buildLogsDrilldownUrl, buildLogsListFilters, buildMetricsDimensionalFilter, buildTraceListFilters, buildTracesDrilldownUrl, buttonVariants, buttonsGroupVariants, clearSavedLogsFilters, clearSavedMetricsFilters, clearSavedTraceFilters, cn, comboboxStyles, countLeafRules, createDefaultRule, createDefaultRuleGroup, createField, createLogsPropertyFilterFields, createMetricsPropertyFilterFields, createTracePropertyFilterFields, createVariableAutocomplete, fieldsToJSONSchema, fileToBase64, flattenSchemaToVariables, focusRing, formElementFocus, formElementFocusWithin, formElementRadius, formElementSizes, formElementTransition, formatCompact, formatCost, formatHierarchicalSpans, formatJSON, generateDefaultValues, getAllSpanIds, getChildFieldOptions, getColumnTemplate, getFieldOptionAtPath, getFieldOptionsFromSchema, getFileContentType, getInputPreview, getIsLinkActive, getItemListColumnTemplate, getLogsPropertyFilterTokens, getMainContentContentClassName, getMetricsPropertyFilterTokens, getPreservedLogsFilterParams, getPreservedTraceFilterParams, getShortId$1 as getShortId, getSpanDescendantIds, getSpanTypeUi, getStatusIcon, getToNextEntryFn, getToNextItemFn, getToPreviousEntryFn, getToPreviousItemFn, getTokenLimitMessage, getTracePropertyFilterTokens, hasAnyLogsFilterParams, hasAnyMetricsFilterParams, hasAnyTraceFilterParams, highlight, hoverEffects, inputVariants, is401UnauthorizedError, is403ForbiddenError, isBranchesNotSupportedError, isNonRetryableError, isObjectEmpty, isRule, isRuleGroup, isTokenLimitExceeded, isValidJson, isValidPreset, jsonSchemaToFields, loadLogsFiltersFromStorage, loadMetricsFiltersFromStorage, loadTraceFiltersFromStorage, lodashTitleCase, narrowWindowToBucket, navItemClasses, neutralizeFilterTokens, neutralizeLogsFilterTokens, parseError, parseFieldPath, saveLogsFiltersToStorage, saveMetricsFiltersToStorage, saveTraceFiltersToStorage, sharedFormElementDisabledStyle, sharedFormElementFocusStyle, sharedFormElementStyle, shouldRetryQuery, spanTypePrefixes, stringToColor, textareaVariants, toSigFigs, toast, transitions, truncateString, useActiveResourcesKpiMetrics, useActiveThreadsKpiMetrics, useAgentRunsKpiMetrics, useAutoscroll, useBranch, useCodemirrorTheme$3 as useCodemirrorTheme, useCopyToClipboard, useDrilldown, useEntityNames, useEnvironments, useInView, useJSONSchemaForm, useJSONSchemaFormField, useJSONSchemaFormNestedContext, useLatencyMetrics, useLogs, useLogsFilterPersistence, useLogsListNavigation, useLogsUrlState, useMainSidebar, useMaybeSidebar, useMetrics, useMetricsFilters, useModelCostKpiMetrics, useModelUsageCostMetrics, usePageHeading, usePlaygroundStore, useScoresMetrics, useServiceNames, useSpanDetail, useTableKeyboardNavigation, useTags, useTheme, useTokenUsageByAgentMetrics, useTopActiveThreadsMetrics, useTopResourcesByThreadsMetrics, useTotalTokensKpiMetrics, useTraceFilterPersistence, useTraceLightSpans, useTraceListNavigation, useTraceOrBranchSpans, useTraceSpanNavigation, useTraceSpans, useTraceUrlState, useTraceVolumeMetrics, useTraces, variableHighlight };
|
|
21587
21507
|
//# sourceMappingURL=index.es.js.map
|