@tangle-network/sandbox-ui 1.1.8 → 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.
- package/README.md +1 -1
- package/dist/{AgentGraph-DxAeQQch.d.ts → AgentGraph-B4uWLXlD.d.ts} +12 -17
- package/dist/AgentGraph-C1DsA-Rd.js +1369 -0
- package/dist/{AgentGraphCanvas-CMdOlSlh.js → AgentGraphCanvas-Bcxq-e6E.js} +557 -383
- package/dist/{WorkflowGraph-DZ3xejKE.js → WorkflowGraph-BDjc7V_U.js} +3 -2
- package/dist/canvas-theme-DGd0fm1H.js +58 -0
- package/dist/{chat-4OZD23RA.js → chat-BrlLa4rg.js} +2 -2
- package/dist/chat.d.ts +2 -2
- package/dist/chat.js +1 -1
- package/dist/{dashboard-ClKA3opr.js → dashboard-FMrtIe9S.js} +3 -3
- package/dist/dashboard.js +1 -1
- package/dist/globals.css +2366 -1801
- package/dist/{index-ucJHuuVZ.d.ts → index-5zOVKgDT.d.ts} +2 -2
- package/dist/index-BK8KKLNY.d.ts +26 -0
- package/dist/{index-72uBu5lu.d.ts → index-D9-IiEpQ.d.ts} +21 -6
- package/dist/index.d.ts +5 -6
- package/dist/index.js +8 -291
- package/dist/integrations.d.ts +2 -1
- package/dist/integrations.js +6 -1
- package/dist/latest-events-B34ElSTE.js +190 -0
- package/dist/{AgentGraph-DJEQrKTs.js → node-ui-Bfnh08U3.js} +40 -1194
- package/dist/primitives-CCdx5Hh_.js +23 -0
- package/dist/primitives.d.ts +2 -3
- package/dist/primitives.js +1 -2
- package/dist/{run-Qern6muT.js → run-BqpdpP1K.js} +161 -60
- package/dist/run.d.ts +2 -2
- package/dist/run.js +3 -1
- package/dist/styles.css +2366 -1801
- package/dist/tailwind.css +74 -60
- package/dist/tokens.css +452 -851
- package/dist/{workbench-DOgYO3Zg.js → workbench-BVnZNhP2.js} +1 -1
- package/dist/workbench.js +1 -1
- package/dist/workflows.d.ts +3 -7
- package/dist/workflows.js +2 -1
- package/package.json +11 -10
- package/dist/elk-loader-Dl9S7jQk.js +0 -12
- package/dist/index-BAEvGqrn.d.ts +0 -26
- package/dist/primitives-CiwDp4-0.js +0 -32
- package/dist/rolldown-runtime-782esTHO.js +0 -26
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ An app that runs its own Tailwind v4 compile imports the source entry instead, a
|
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
The entry carries Brand's tokens and utility registrations, this package's runtime CSS, and `@source` lines for its own `dist` and the `@tangle-network/ui` peer, so every component utility compiles once, in the app's own layer order.
|
|
54
|
-
Agent apps import `@tangle-network/agent-app/tailwind.css`, which includes this entry.
|
|
54
|
+
Brand defaults live in `theme.brand`, so host refinements in `theme` can override them. Agent apps import `@tangle-network/agent-app/tailwind.css`, which includes this entry.
|
|
55
55
|
|
|
56
56
|
### Dashboard page spacing
|
|
57
57
|
|
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
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 };
|