@tangle-network/sandbox-ui 6.0.1 → 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.
- package/dist/{AgentTree-D4d06rfH.js → AgentTree-abRugBMr.js} +1 -1
- package/dist/{ResearchReport-D1TFmldm.js → ResearchReport-BPOmsUFI.js} +2 -2
- package/dist/globals.css +45 -20
- package/dist/{index-D6fZ1Hgz.d.ts → index-PolYo7h9.d.ts} +11 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/record/ResearchReport.js +1 -1
- package/dist/{record-C-EUpK-n.js → record-hTSz-cf1.js} +2 -2
- package/dist/record.js +1 -1
- package/dist/run/live.js +1 -1
- package/dist/run/record.js +3 -3
- package/dist/run.d.ts +1 -1
- package/dist/run.js +4 -4
- package/dist/styles.css +45 -20
- package/dist/tailwind.css +1 -0
- package/dist/{trace-workspace-Cfil2Ma9.js → trace-workspace-WJTjp2Id.js} +447 -121
- package/dist/{use-follow-tail-DZFn7QDO.js → use-follow-tail-Di1zlndg.js} +5 -5
- package/dist/workspace-viewer.js +9955 -9685
- package/package.json +1 -1
|
@@ -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",
|