@tangle-network/sandbox-ui 2.0.22 → 3.0.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/README.md +6 -0
- package/dist/{AgentTree-KO1TJXBq.js → AgentTree-CJRVpgPq.js} +8 -8
- package/dist/ResearchReport-CSNpZ-pj.js +2063 -0
- package/dist/ResearchReport-CmFYqNVY.d.ts +36 -0
- package/dist/{chat-BU39pb2j.js → chat-BrlLa4rg.js} +2 -2
- package/dist/chat.d.ts +1 -1
- package/dist/chat.js +1 -1
- package/dist/globals.css +106 -297
- package/dist/hooks.d.ts +2 -2
- package/dist/hooks.js +2 -2
- package/dist/{index-Due7tY0w.d.ts → index-5zOVKgDT.d.ts} +2 -2
- package/dist/{index-D2_4ONCz.d.ts → index-DpzFSqjG.d.ts} +1 -7
- package/dist/{index-BoKSR0s9.d.ts → index-YU_b9xCK.d.ts} +2 -2
- package/dist/index.d.ts +6 -6
- package/dist/index.js +9 -9
- package/dist/record/ResearchReport.d.ts +2 -0
- package/dist/record/ResearchReport.js +1 -0
- package/dist/{record-BGcR48YY.js → record-Ct_MZeZC.js} +1 -1
- package/dist/record.d.ts +2 -35
- package/dist/record.js +2 -2061
- package/dist/report-viewer.js +130 -90
- package/dist/run/live.js +14 -33
- package/dist/run/record.js +2 -2
- package/dist/run.d.ts +2 -2
- package/dist/run.js +5 -5
- package/dist/runtime-viewer/{AgentGraphCanvas-DDvaU9Rg-DlNZxJ20.js → AgentGraphCanvas-DGq7_u8--WPFPgd72.js} +2254 -2282
- package/dist/runtime-viewer/latest-events-CRq9sGkK-YFXUh9qO.js +9586 -0
- package/dist/runtime-viewer/{sandbox-ui-CUj4Q1P_.css → sandbox-ui-BEziPi7D.css} +1 -1
- package/dist/styles.css +107 -298
- package/dist/tailwind.css +72 -13
- package/dist/{trace-workspace-DkakKRLV.js → trace-workspace-BiJbv9WQ.js} +2 -2
- package/dist/use-follow-tail-Ht7fZGQQ.js +1 -0
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +1 -1
- package/dist/{workspace--GvnZNpH.js → workspace-CAdAoNmW.js} +11 -17
- package/dist/workspace-viewer.js +10146 -12805
- package/dist/workspace.d.ts +1 -1
- package/dist/workspace.js +1 -1
- package/package.json +11 -7
- package/dist/runtime-viewer/latest-events-CabhXynX-Dp_vs0Px.js +0 -3671
- package/dist/use-follow-tail-Ckx5ZSV2.js +0 -1
package/README.md
CHANGED
|
@@ -26,6 +26,12 @@ declarations. Interface 4.x, 5.0.x, and 5.1.x are not admitted. New majors requi
|
|
|
26
26
|
qualification before the peer range is extended.
|
|
27
27
|
Optional peers are required only by the subpaths that use them; see [package.json](./package.json). `/editor` needs its tiptap, `yjs` and `@hocuspocus/provider` peers only when it renders an editor, and the `@tangle-network/ui` README holds the table of which surface needs which. `/files` needs `pdfjs-dist` only for `PdfViewer`, which `FilePreview` uses for PDFs; without it the viewer says so and falls back to the browser's own PDF viewer. The `ui` README covers its worker and asset setup through `configurePdfViewer`.
|
|
28
28
|
|
|
29
|
+
### Retained reports
|
|
30
|
+
|
|
31
|
+
Import `ResearchReport` from `@tangle-network/sandbox-ui/record/ResearchReport` for report-only server rendering. It needs the Core report/data peer and React; it avoids the optional WorkGraph feature and chat session stores. `record` retains the complete record/report/WorkGraph surface for hosts that use those features. Load the shared stylesheet for both.
|
|
32
|
+
|
|
33
|
+
The Charts and UI peers in [package.json](./package.json) provide the shared clock and canonical run statuses; graph producers send `done` for completed work. Standalone report assets bundle the same UTC timestamp implementation during release.
|
|
34
|
+
|
|
29
35
|
### Retained conversations
|
|
30
36
|
|
|
31
37
|
`Conversation`, `AgentTree`, `indexRecord` and `withPrompts` from `@tangle-network/sandbox-ui/run/record` show retained conversations and their recorded hierarchy. `AgentTree` takes `index`, selected `actor`, recorded-time `cutoff` and `select(id)`. Load the shared stylesheet and pass validated presentation data. Original source IDs, reconstructed prompts, pending tool receipts, collapsed idle polls, source callbacks and assessment flags remain available.
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D8jQpDG7.js";
|
|
2
2
|
import { t as VirtualList } from "./VirtualList-DLh2JE0F.js";
|
|
3
|
-
import { t as useFollowTail } from "./use-follow-tail-
|
|
3
|
+
import { t as useFollowTail } from "./use-follow-tail-Ht7fZGQQ.js";
|
|
4
4
|
import { HoverCard, HoverCardContent, HoverCardTrigger } from "@tangle-network/ui/primitives";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
7
7
|
import { Brain, Settings, Timer } from "lucide-react";
|
|
8
8
|
import { getToolCategory, getToolDisplayMetadata } from "@tangle-network/ui/utils";
|
|
9
|
-
import { AgentTimelineColumn, AgentTimelineStep,
|
|
10
|
-
import { ExpandedToolDetail, InlineThinkingItem, RunRowShell, RunStatusIcon, runStatus, statusMeta } from "@tangle-network/ui/run";
|
|
9
|
+
import { AgentTimelineColumn, AgentTimelineStep, agentTimelineStepKind } from "@tangle-network/ui/chat/agent-timeline";
|
|
11
10
|
import { formatCompact, formatCompact as fmt, formatCost, formatSpanDuration, formatSpanDuration as interval, formatUtcTime as utcTime, reportedCount, sumReportedCounts } from "@tangle-network/charts";
|
|
11
|
+
import { SpeakerHeader } from "@tangle-network/ui/chat/speaker";
|
|
12
|
+
import { ExpandedToolDetail } from "@tangle-network/ui/run/expanded-tool-detail";
|
|
13
|
+
import { InlineThinkingItem } from "@tangle-network/ui/run/inline-thinking-item";
|
|
14
|
+
import { RunRowShell } from "@tangle-network/ui/run/run-row-shell";
|
|
15
|
+
import { RunStatusIcon, isOpen, runStatus, statusMeta } from "@tangle-network/ui/run/status-meta";
|
|
12
16
|
// src/run/record/model.ts
|
|
13
17
|
var model_exports = /* @__PURE__ */ __exportAll({
|
|
14
18
|
agentState: () => agentState,
|
|
@@ -291,11 +295,7 @@ function recordFlowTrace(record, live = false, observedAt = Date.now()) {
|
|
|
291
295
|
const last = Math.max(first, index.end, live ? observedAt : first);
|
|
292
296
|
const spans = [];
|
|
293
297
|
const actors = new Set(index.actors.map((node) => node.id));
|
|
294
|
-
const runningNodes = new Set(index.actors.filter((node) => live && !node.end &&
|
|
295
|
-
"running",
|
|
296
|
-
"waiting",
|
|
297
|
-
"needs-you"
|
|
298
|
-
].includes(runStatus(node.status ?? "unknown"))).map((node) => node.id));
|
|
298
|
+
const runningNodes = new Set(index.actors.filter((node) => live && !node.end && isOpen(node.status ?? "unknown")).map((node) => node.id));
|
|
299
299
|
const offset = (at) => Math.max(0, at - first);
|
|
300
300
|
for (const node of index.actors) {
|
|
301
301
|
if (node.kind === "finding") continue;
|