@tangle-network/sandbox-ui 6.0.0 → 7.0.0

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.
@@ -3,7 +3,7 @@ import { HoverCard, HoverCardContent, HoverCardTrigger } from "@tangle-network/u
3
3
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
4
  import { Brain, Settings, Timer } from "lucide-react";
5
5
  import { getToolCategory, getToolDisplayMetadata } from "@tangle-network/ui/utils";
6
- import { formatCompact, formatCompact as fmt, formatCost, formatSpanDuration, formatSpanDuration as interval, formatUtcTime as utcTime, reportedCount, sumReportedCounts } from "@tangle-network/charts";
6
+ import { formatCompact, formatCompact as fmt, formatCost as formatCost$1, formatSpanDuration as formatSpanDuration$1, formatSpanDuration as interval, formatUtcTime as utcTime, reportedCount, sumReportedCounts } from "@tangle-network/charts";
7
7
  import { AgentTimelineStep, agentTimelineStepKind } from "@tangle-network/ui/chat/agent-timeline";
8
8
  import { SpeakerHeader } from "@tangle-network/ui/chat/speaker";
9
9
  import { ExpandedToolDetail } from "@tangle-network/ui/run/expanded-tool-detail";
@@ -747,12 +747,12 @@ function ToolStep({ item, previous }) {
747
747
  /* @__PURE__ */ jsx("dt", { children: "Duration" }),
748
748
  /* @__PURE__ */ jsx("dd", {
749
749
  className: "m-0 text-right",
750
- children: time?.end != null && time.start != null ? formatSpanDuration(time.end - time.start) : "Not recorded"
750
+ children: time?.end != null && time.start != null ? formatSpanDuration$1(time.end - time.start) : "Not recorded"
751
751
  }),
752
752
  /* @__PURE__ */ jsx("dt", { children: "Cost" }),
753
753
  /* @__PURE__ */ jsx("dd", {
754
754
  className: "m-0 text-right",
755
- children: typeof cost === "number" ? formatCost(cost) : "Not recorded"
755
+ children: typeof cost === "number" ? formatCost$1(cost) : "Not recorded"
756
756
  })
757
757
  ]
758
758
  }),
@@ -962,7 +962,7 @@ function timelineItems(entries, streaming, opened) {
962
962
  }
963
963
  const toolNote = (part) => {
964
964
  const note = part.state.metadata?.note, time = part.state.time;
965
- const duration = time?.end != null && time.start != null ? formatSpanDuration(time.end - time.start) : "Not recorded";
965
+ const duration = time?.end != null && time.start != null ? formatSpanDuration$1(time.end - time.start) : "Not recorded";
966
966
  const result = typeof note === "string" ? note : part.state.status === "error" ? "Failed" : part.state.status === "running" ? "Running" : "Returned";
967
967
  return /* @__PURE__ */ jsxs("span", {
968
968
  "data-record-tool-summary": "",
@@ -1116,7 +1116,7 @@ function rowItems(row, context) {
1116
1116
  if (withheld.length) {
1117
1117
  const output = outputTokens(event.detail);
1118
1118
  const span = thinkingSpan.get(event.id);
1119
- const label = output !== null ? `${span !== void 0 && span >= 1e3 ? `for ${formatSpanDuration(span)} · ` : ""}${formatCompact(output)} output tokens · ${withheld.join(" · ")}` : withheld.join(" · ");
1119
+ const label = output !== null ? `${span !== void 0 && span >= 1e3 ? `for ${formatSpanDuration$1(span)} · ` : ""}${formatCompact(output)} output tokens · ${withheld.join(" · ")}` : withheld.join(" · ");
1120
1120
  items.push({
1121
1121
  id: `${event.id}:thinking`,
1122
1122
  kind: "custom",