@tangle-network/sandbox-ui 2.0.3 → 2.0.5

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.
@@ -23,6 +23,11 @@ interface AgentGraphNode {
23
23
  turn?: string | null;
24
24
  costUsd?: number | null;
25
25
  tokens?: number | null;
26
+ /** Recorded metrics with units; retained in pointer and keyboard detail cards. */
27
+ facts?: readonly {
28
+ label: string;
29
+ value: string;
30
+ }[];
26
31
  /** Live cards: what it is doing now, from its real state; the card carries it as `data-activity` for hosts to style. */
27
32
  activity?: AgentGraphActivity | null;
28
33
  /** Live cards: its latest tool calls or events, oldest first; the card shows the last three. */
@@ -37,7 +42,7 @@ interface AgentGraphNode {
37
42
  startedAt?: number | null;
38
43
  /** Live cards: commits it shipped. */
39
44
  commits?: number | null;
40
- /** Live cards: a settled agent's result, shown on its chip, e.g. "rc2 · 14 commits". */
45
+ /** Live cards: a settled agent's result in its compact row, e.g. "rc2 · 14 commits". */
41
46
  result?: string | null;
42
47
  }
43
48
  type AgentGraphActivity = "thinking" | "reading" | "building" | "proving" | "writing" | "waiting" | "restarting";
@@ -113,9 +118,9 @@ interface AgentGraphProps {
113
118
  /** Hub layout: the header title. Default "Agent graph". */
114
119
  title?: ReactNode;
115
120
  /**
116
- * Tree layout: live cards for a running run. Each card shows a status pill that breathes while it runs, its thinking
117
- * line (`turn`) and last three `events` streaming in with how long ago each ran (`at`), its model, effort, time alive and commits; a settled
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.
121
+ * Tree layout: readable task summaries, the latest three events and model/accounting details. Desktop slots stay
122
+ * fixed through status updates; completed results compact while failures retain their evidence. Phones preserve
123
+ * their initial attention order. Only the running dot breathes; commands update without routine sliding.
119
124
  */
120
125
  live?: boolean;
121
126
  /** Host tool identity, such as charts' toolGlyph(event.label). Core graphs need no charts dependency. */
@@ -1258,7 +1258,7 @@ function retryImport(factory, retries = 2, delayMs = 350) {
1258
1258
  });
1259
1259
  }
1260
1260
  function lazyWorkflowGraph() {
1261
- return lazy(() => retryImport(() => import("./WorkflowGraph-Bj6VMnOz.js").then((m) => ({ default: m.WorkflowGraph }))));
1261
+ return lazy(() => retryImport(() => import("./WorkflowGraph-DkdcJ8wb.js").then((m) => ({ default: m.WorkflowGraph }))));
1262
1262
  }
1263
1263
  var GraphErrorBoundary = class extends Component {
1264
1264
  state = { hasError: false };
@@ -1318,7 +1318,7 @@ function WorkflowGraph(props) {
1318
1318
  * taking the pane down.
1319
1319
  */
1320
1320
  function lazyCanvas() {
1321
- return lazy(() => retryImport(() => import("./AgentGraphCanvas-CIGQjYtw.js").then((m) => ({ default: m.AgentGraphCanvas }))));
1321
+ return lazy(() => retryImport(() => import("./AgentGraphCanvas-DYAMCkhv.js").then((m) => ({ default: m.AgentGraphCanvas }))));
1322
1322
  }
1323
1323
  /** The agents as a list, for when the canvas cannot load. */
1324
1324
  function AgentListFallback({ nodes, selectedId, onSelect, className, onRetry }) {