@tangle-network/sandbox-ui 1.1.10 → 2.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.
Files changed (34) hide show
  1. package/dist/{AgentGraph-DxAeQQch.d.ts → AgentGraph-B4uWLXlD.d.ts} +12 -17
  2. package/dist/AgentGraph-C1DsA-Rd.js +1369 -0
  3. package/dist/{AgentGraphCanvas-CMdOlSlh.js → AgentGraphCanvas-Bcxq-e6E.js} +557 -383
  4. package/dist/{WorkflowGraph-DZ3xejKE.js → WorkflowGraph-BDjc7V_U.js} +3 -2
  5. package/dist/canvas-theme-DGd0fm1H.js +58 -0
  6. package/dist/{chat-4OZD23RA.js → chat-BrlLa4rg.js} +2 -2
  7. package/dist/chat.d.ts +2 -2
  8. package/dist/chat.js +1 -1
  9. package/dist/{dashboard-DZ6FcC_Z.js → dashboard-FMrtIe9S.js} +1 -1
  10. package/dist/dashboard.js +1 -1
  11. package/dist/globals.css +404 -240
  12. package/dist/{index-ucJHuuVZ.d.ts → index-5zOVKgDT.d.ts} +2 -2
  13. package/dist/index-BK8KKLNY.d.ts +26 -0
  14. package/dist/{index-72uBu5lu.d.ts → index-D9-IiEpQ.d.ts} +21 -6
  15. package/dist/index.d.ts +4 -4
  16. package/dist/index.js +7 -6
  17. package/dist/latest-events-B34ElSTE.js +190 -0
  18. package/dist/{AgentGraph-DJEQrKTs.js → node-ui-Bfnh08U3.js} +40 -1194
  19. package/dist/primitives-CCdx5Hh_.js +23 -0
  20. package/dist/primitives.d.ts +2 -2
  21. package/dist/primitives.js +1 -1
  22. package/dist/{run-Qern6muT.js → run-BqpdpP1K.js} +161 -60
  23. package/dist/run.d.ts +2 -2
  24. package/dist/run.js +3 -1
  25. package/dist/styles.css +404 -240
  26. package/dist/tailwind.css +70 -43
  27. package/dist/{workbench-Ca6ZqAs5.js → workbench-BVnZNhP2.js} +1 -1
  28. package/dist/workbench.js +1 -1
  29. package/dist/workflows.d.ts +3 -7
  30. package/dist/workflows.js +2 -1
  31. package/package.json +9 -8
  32. package/dist/elk-loader-Dl9S7jQk.js +0 -12
  33. package/dist/index-CFJ1iJhu.d.ts +0 -26
  34. package/dist/primitives-B-76QdOU.js +0 -23
@@ -1,22 +1,9 @@
1
1
  import { ReactNode } from "react";
2
2
  /**
3
- * Where every agent of a multi-agent run sits on the `AgentGraph` canvas.
4
- *
5
- * Only SPAWN edges shape the layout: they make the run's tree (a manager and
6
- * the workers it started). Message and delegation edges are drawn over the
7
- * finished layout and never move a card.
8
- *
9
- * A parent that spawned many workers which spawned nobody would, laid out as a
10
- * plain tree, put all of them in one row: sixteen 200px cards side by side is a
11
- * 3,000px strip that a 360px pane can only show as specks. Those leaf workers
12
- * are packed into a grid inside one frame instead, reached by one edge from
13
- * their parent, and the grid's column count is chosen for the canvas it is
14
- * shown in ({@link pickAgentLayout}). Workers that spawned workers of their own
15
- * stay tree nodes, so the depth of the run is still visible.
16
- *
17
- * Positions come from ELK's layered algorithm (the optional `elkjs` peer,
18
- * shared with `WorkflowGraph` through `loadElk`). Without it, a row-per-depth
19
- * layout keeps the graph drawable.
3
+ * Stable desktop geometry for AgentGraph. Spawn edges determine the tree and
4
+ * packed leaf groups; message and delegation edges never move cards.
5
+ * ELK lays out candidate column counts; a row-per-depth fallback keeps the
6
+ * graph usable without that optional peer. Narrow containers use Canvas's list.
20
7
  */
21
8
  type AgentGraphStatus = "running" | "waiting" |
22
9
  /** Blocked on a person: drawn amber, named in the header. */
@@ -40,6 +27,10 @@ interface AgentGraphNode {
40
27
  activity?: AgentGraphActivity | null;
41
28
  /** Live cards: its latest tool calls or events, oldest first; the card shows the last three. */
42
29
  events?: readonly AgentGraphEvent[] | null;
30
+ /** Recorded activity and full-stream median, when the visible event tail is bounded. Epoch milliseconds. */
31
+ lastActivityAt?: number;
32
+ /** Median interval between recorded events, in milliseconds. */
33
+ medianEventGapMs?: number;
43
34
  /** Live cards: the reasoning effort it runs at, e.g. "high". */
44
35
  effort?: string | null;
45
36
  /** Live cards: epoch ms it was spawned, for its time alive. */
@@ -127,6 +118,10 @@ interface AgentGraphProps {
127
118
  * agent shrinks to a chip with its `result`, and a new spawn grows in. Cards keep a fixed size, so updates never move one.
128
119
  */
129
120
  live?: boolean;
121
+ /** Host tool identity, such as charts' toolGlyph(event.label). Core graphs need no charts dependency. */
122
+ renderEventIcon?: (event: AgentGraphEvent) => ReactNode;
123
+ /** Live tree activity; false when a shared workspace already supplies its strip. */
124
+ showLatestEvents?: boolean;
130
125
  }
131
126
  declare function AgentGraph(props: AgentGraphProps): import("react").JSX.Element;
132
127
  export { AgentGraphTool as a, AgentGraphEdge as c, AgentGraphNode as d, AgentGraphStatus as f, AgentGraphCallKind as i, AgentGraphEdgeKind as l, AgentGraphProps as n, AgentGraphActivity as o, AgentGraphCall as r, AgentGraphDirection as s, AgentGraph as t, AgentGraphEvent as u };