@tangle-network/agent-app 0.63.67 → 0.63.70

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.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createChatTurnRoutes,
3
3
  streamChatRouteAsSandboxEvents
4
- } from "../chunk-3F5LGESB.js";
4
+ } from "../chunk-RG2CF4CS.js";
5
5
  import "../chunk-SBHFMDR7.js";
6
6
  import "../chunk-RKNNMC6T.js";
7
7
  import "../chunk-XBBXPZJI.js";
@@ -50,4 +50,7 @@ export declare const multiPartyThread: ChatUiMessage[];
50
50
  /** One turn addressed to two agents: ONE stored assistant row whose parts carry
51
51
  * a speaker part before each answer. `ChatMessages` draws it as two answers
52
52
  * under two authors, in the order the person typed the mentions. */
53
+ /** The same ask, mid-turn: both responders were announced at once and each is
54
+ * still answering, so the viewer sees two blocks typing side by side. */
55
+ export declare const twoAgentsAnswering: ChatUiMessage[];
53
56
  export declare const twoAgentsThread: ChatUiMessage[];
@@ -1904,43 +1904,42 @@
1904
1904
  --agent-app-warning-text-hsl: 37.92 98.4252% 75.098%
1905
1905
  }
1906
1906
  }
1907
- /* Standalone surface: consumes Brand tokens; no Tailwind build required.
1907
+ /* Standalone surface: no Tailwind build required. Every color, radius and shadow is a Brand role from
1908
+ * @tangle-network/brand tokens.css, which the host loads with its theme (data-theme or the light/dark class, which also
1909
+ * set color-scheme for the light-dark() mixes below); nothing here is a color of its own, so a named theme carries in.
1908
1910
  * Geometry reads three variables the clock writes every frame: --fw-t (clock ms), --fw-v0 (window start ms)
1909
1911
  * and --fw-k (px per ms). A mark carries --s and --e (its start and end ms), so growth, playback and zoom
1910
1912
  * move marks without a React render.
1911
- * Type uses the 12/14/18 px scale; spacing sits on a 4 px grid. */
1912
- /* light-dark() follows the host's Brand theme (data-theme or the light/dark class), not the OS: a light page
1913
- on a dark OS otherwise resolves the dark fallbacks and muted text drops to 2.4:1. */
1914
- :is(:root[data-theme="light"], .light) .fw-root { color-scheme: light; }
1915
- :is(:root[data-theme="dark"], .dark) .fw-root { color-scheme: dark; }
1913
+ * Type uses the 12/14 px scale; spacing sits on a 4 px grid. */
1916
1914
  .fw-root {
1917
- --fw-text: var(--text-primary, light-dark(#23232b, #ececf1));
1918
- --fw-muted: var(--text-muted, light-dark(#5d5d68, #a4a4b0));
1919
- --fw-faint: color-mix(in oklab, var(--fw-muted) 70%, transparent);
1920
- --fw-surface: var(--bg-card, light-dark(#ffffff, #17171d));
1921
- --fw-raised: var(--bg-elevated, light-dark(#ffffff, #1f1f27));
1922
- --fw-border: var(--border-subtle, light-dark(rgb(0 0 0 / .09), rgb(255 255 255 / .09)));
1923
- --fw-grid: color-mix(in oklab, var(--fw-text) 6%, transparent);
1924
- --fw-guide: color-mix(in oklab, var(--fw-text) 13%, transparent);
1925
- --fw-well: color-mix(in oklab, var(--fw-text) 4.5%, var(--fw-surface));
1926
- --fw-hover: color-mix(in oklab, var(--fw-text) 4%, transparent);
1927
- --fw-accent: var(--accent-text, light-dark(#4f46e5, #a5b4fc));
1928
- --fw-failed: light-dark(#d4304a, #ff5c74);
1929
- --fw-ok: var(--status-running, light-dark(#0d8a5f, #34c48c));
1930
- --fw-amber: light-dark(#a35d00, #f2b14c);
1931
- /* Step kinds inside an agent bar: two hues far from each other and from the outcome greens and reds. */
1932
- --fw-kind-model: light-dark(#4f46e5, #8f91f7);
1933
- --fw-kind-tool: light-dark(#0e8fb0, #4cc9e6);
1915
+ --fw-text: var(--text-primary);
1916
+ --fw-muted: var(--text-muted);
1917
+ --fw-surface: var(--bg-card);
1918
+ --fw-raised: var(--bg-elevated);
1919
+ /* One hairline for the card edge and every rule inside it; the plot grid is the chart grid. */
1920
+ --fw-border: hsl(var(--hsl-border));
1921
+ --fw-grid: var(--chart-grid);
1922
+ --fw-guide: var(--chart-rule);
1923
+ /* The trace is a card, so its wells are the in-card well. */
1924
+ --fw-well: var(--well-card);
1925
+ --fw-hover: var(--bg-hover);
1926
+ --fw-accent: var(--accent-text);
1927
+ --fw-failed: var(--surface-danger-text);
1928
+ --fw-ok: var(--surface-success-text);
1929
+ --fw-amber: var(--surface-warning-text);
1930
+ /* Step kinds inside an agent bar: the chart accent and a categorical hue, far from the outcome greens and reds. */
1931
+ --fw-kind-model: var(--chart-accent);
1932
+ --fw-kind-tool: var(--tone-cyan-icon);
1934
1933
  --fw-neutral-bar: color-mix(in oklab, var(--fw-text) 15%, var(--fw-surface));
1935
1934
  --fw-hatch: color-mix(in oklab, var(--fw-text) 22%, transparent);
1936
- /* Root agent neutral, then five agent hues. Each passes 3:1 against both surfaces as a mark. */
1937
- --fw-h0: light-dark(#6c6f84, #a3a6bb);
1938
- --fw-h1: light-dark(#4b55d6, #8f96ff);
1939
- /* No warm hue among the agents: amber is kept for the slowest and red for failure. */
1940
- --fw-h2: light-dark(#3d8a52, #6fcb8a);
1941
- --fw-h3: light-dark(#0b87a0, #35c2db);
1942
- --fw-h4: light-dark(#b0418a, #dc72bb);
1943
- --fw-h5: light-dark(#6d44c7, #ab8cf7);
1935
+ /* Root agent neutral, then five of Brand's categorical hues, each 3:1 or more against the card in both modes. No warm hue
1936
+ among the agents (amber is kept for the slowest and red for failure), and neighbours alternate cool and warm-leaning. */
1937
+ --fw-h0: var(--chart-muted);
1938
+ --fw-h1: var(--tone-blue-icon);
1939
+ --fw-h2: var(--tone-teal-icon);
1940
+ --fw-h3: var(--tone-pink-icon);
1941
+ --fw-h4: var(--tone-violet-icon);
1942
+ --fw-h5: var(--tone-lime-icon);
1944
1943
  --fw-ease: cubic-bezier(.2, .8, .2, 1);
1945
1944
  /* Bar height = row height - 16, so a centered bar sits 8 px from the row edge: 20 px in a 36 px step row. */
1946
1945
  --fw-bar-h: 20px;
@@ -1953,15 +1952,15 @@
1953
1952
  color: var(--fw-text);
1954
1953
  background: var(--fw-surface);
1955
1954
  border: 1px solid var(--fw-border);
1956
- border-radius: 12px;
1957
- font-family: var(--font-sans, Inter, ui-sans-serif, system-ui, sans-serif);
1955
+ border-radius: var(--radius-xl);
1956
+ font-family: var(--font-sans);
1958
1957
  font-size: 14px;
1959
1958
  line-height: 20px;
1960
1959
  /* Tabular figures only on numeric cells: on names they widen hyphens ("v6 - battery", "glm - 5.3"). */
1961
1960
  font-feature-settings: "cv11" 1;
1962
1961
  -webkit-font-smoothing: antialiased;
1963
1962
  }
1964
- .fw-root-agents { --fw-bar-h: 24px; --fw-label-col: min(var(--fw-name-w), 28%); border-radius: 16px; }
1963
+ .fw-root-agents { --fw-bar-h: 24px; --fw-label-col: min(var(--fw-name-w), 28%); }
1965
1964
  .fw-root *, .fw-root *::before, .fw-root *::after { box-sizing: border-box; }
1966
1965
  .fw-root :is(p, dl, dd, h3, ul) { margin: 0; padding: 0; }
1967
1966
  .fw-root :is(button, input, select) { font: inherit; color: inherit; }
@@ -1973,13 +1972,14 @@
1973
1972
  .fw-root [data-tone="3"] { --tone: var(--fw-h3); }
1974
1973
  .fw-root [data-tone="4"] { --tone: var(--fw-h4); }
1975
1974
  .fw-root [data-tone="5"] { --tone: var(--fw-h5); }
1976
- /* Light fills carry enough of the hue to tell agents apart on white (24% and 42% both read as "pastel, washed out"); the outline is
1977
- the full hue, which passes 3:1 against the surface, so every mark keeps its edge. */
1975
+ /* The outline is the full hue, which passes 3:1 against the card, so every mark keeps its edge; on a dark card the fill sits a
1976
+ step toward the canvas, so a bar reads apart from a handoff pill in the full hue. The dim shade (tool calls) mixes the hue
1977
+ toward the card, more of it on a dark card. */
1978
1978
  .fw-root [data-tone] {
1979
- --fill: light-dark(var(--tone), color-mix(in oklab, var(--tone) 94%, #000));
1980
- --line: light-dark(var(--tone), var(--tone));
1981
- --dim: light-dark(color-mix(in oklab, var(--tone) 62%, #fff), color-mix(in oklab, var(--tone) 40%, #17171d));
1982
- --dim-line: light-dark(color-mix(in oklab, var(--tone) 70%, #fff), color-mix(in oklab, var(--tone) 55%, #17171d));
1979
+ --fill: light-dark(var(--tone), color-mix(in oklab, var(--tone) 94%, hsl(var(--hsl-background))));
1980
+ --line: var(--tone);
1981
+ --dim: light-dark(color-mix(in oklab, var(--tone) 62%, var(--fw-surface)), color-mix(in oklab, var(--tone) 40%, var(--fw-surface)));
1982
+ --dim-line: light-dark(color-mix(in oklab, var(--tone) 70%, var(--fw-surface)), color-mix(in oklab, var(--tone) 55%, var(--fw-surface)));
1983
1983
  }
1984
1984
  /* Header */
1985
1985
  .fw-root .fw-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--fw-border); flex-wrap: wrap; }
@@ -1987,20 +1987,20 @@
1987
1987
  .fw-root .fw-title-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
1988
1988
  .fw-root .fw-title-glyph { display: inline-flex; color: var(--fw-accent); }
1989
1989
  .fw-root .fw-title { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; }
1990
- .fw-root .fw-state { display: inline-flex; align-items: center; gap: 8px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--fw-muted); background: var(--fw-well); flex-shrink: 0; }
1990
+ .fw-root .fw-state { display: inline-flex; align-items: center; gap: 8px; height: 20px; padding: 0 8px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; color: var(--fw-muted); background: var(--fw-well); flex-shrink: 0; }
1991
1991
  .fw-root .fw-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
1992
1992
  .fw-root .fw-state-live { color: var(--fw-accent); background: color-mix(in oklab, var(--fw-accent) 12%, transparent); }
1993
1993
  .fw-root .fw-state-live::before { animation: fw-pulse 1.6s var(--fw-ease) infinite; }
1994
1994
  .fw-root .fw-headline { color: var(--fw-muted); display: flex; align-items: center; gap: 8px; }
1995
1995
  .fw-root .fw-done-mark { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--fw-ok); color: var(--fw-ok); font-size: 12px; line-height: 1; }
1996
1996
  .fw-root .fw-tools { display: flex; align-items: center; gap: 8px; }
1997
- .fw-root .fw-views { display: inline-flex; padding: 4px; border-radius: 8px; background: var(--fw-well); border: 1px solid var(--fw-border); }
1998
- .fw-root .fw-view-button { appearance: none; border: 0; background: transparent; height: 24px; padding: 0 12px; border-radius: 6px; font-size: 14px; color: var(--fw-muted); cursor: pointer; transition: background-color 120ms var(--fw-ease), color 120ms var(--fw-ease); }
1997
+ .fw-root .fw-views { display: inline-flex; padding: 4px; border-radius: var(--radius-md); background: var(--fw-well); border: 1px solid var(--fw-border); }
1998
+ .fw-root .fw-view-button { appearance: none; border: 0; background: transparent; height: 24px; padding: 0 12px; border-radius: var(--radius-sm); font-size: 14px; color: var(--fw-muted); cursor: pointer; transition: background-color 120ms var(--fw-ease), color 120ms var(--fw-ease); }
1999
1999
  /* The shown view is a state, not a control: no click target, no pointer. */
2000
- .fw-root .fw-view-button[aria-checked="true"] { opacity: 1; cursor: default; background: var(--fw-surface); color: var(--fw-text); box-shadow: 0 1px 2px rgb(0 0 0 / .12), 0 0 0 1px var(--fw-border); }
2000
+ .fw-root .fw-view-button[aria-checked="true"] { opacity: 1; cursor: default; background: var(--fw-surface); color: var(--fw-text); box-shadow: var(--shadow-card), 0 0 0 1px var(--fw-border); }
2001
2001
  .fw-root .fw-search { position: relative; display: flex; align-items: center; }
2002
2002
  .fw-root .fw-search-glyph { position: absolute; left: 8px; display: inline-flex; color: var(--fw-muted); pointer-events: none; }
2003
- .fw-root .fw-search-input { appearance: none; width: 200px; height: 32px; padding: 0 12px 0 28px; border: 1px solid var(--fw-border); border-radius: 8px; background: var(--fw-well); font-size: 14px; }
2003
+ .fw-root .fw-search-input { appearance: none; width: 200px; height: 32px; padding: 0 12px 0 28px; border: 1px solid var(--fw-border); border-radius: var(--radius-md); background: var(--fw-well); font-size: 14px; }
2004
2004
  .fw-root .fw-search-input::placeholder { color: var(--fw-muted); }
2005
2005
  .fw-root .fw-search-input::-webkit-search-cancel-button { display: none; }
2006
2006
  /* KPI row */
@@ -2015,7 +2015,7 @@
2015
2015
  .fw-root .fw-axis-top { border-bottom: 1px solid var(--fw-border); }
2016
2016
  .fw-root .fw-axis-label { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 16px; border-right: 1px solid var(--fw-border); min-width: 0; }
2017
2017
  .fw-root .fw-branch-controls { margin-left: auto; display: flex; gap: 4px; }
2018
- .fw-root .fw-text-button { appearance: none; border: 0; background: transparent; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 12px; color: var(--fw-muted); cursor: pointer; white-space: nowrap; }
2018
+ .fw-root .fw-text-button { appearance: none; border: 0; background: transparent; height: 24px; padding: 0 8px; border-radius: var(--radius-sm); font-size: 12px; color: var(--fw-muted); cursor: pointer; white-space: nowrap; }
2019
2019
  .fw-root .fw-text-button:hover { background: var(--fw-hover); color: var(--fw-text); }
2020
2020
  .fw-root .fw-resize { position: absolute; top: 0; right: -4px; width: 8px; height: 100%; cursor: col-resize; z-index: 2; }
2021
2021
  .fw-root .fw-resize:hover, .fw-root .fw-resize:focus-visible { background: linear-gradient(90deg, transparent 3px, var(--fw-accent) 3px 5px, transparent 5px); outline: 0; }
@@ -2037,47 +2037,48 @@
2037
2037
  .fw-root .fw-marker-line[data-tone="failed"] { --fw-marker: var(--fw-failed); }
2038
2038
  .fw-root .fw-marker[data-tone="ok"] { --fw-marker: var(--fw-ok); }
2039
2039
  .fw-root .fw-marker[data-tone="failed"] { --fw-marker: var(--fw-failed); }
2040
- /* A pause: the run stood still. A hatched band across every row with its reason on top, never blank space. */
2041
- .fw-root .fw-pause { position: absolute; top: 0; bottom: 0; left: calc(var(--fw-pad) + (var(--s) - var(--fw-v0)) * var(--fw-k) * 1px); width: calc(max(0, var(--e) - var(--s)) * var(--fw-k) * 1px);
2042
- background: repeating-linear-gradient(-45deg, color-mix(in oklab, var(--fw-text) 9%, transparent) 0 1px, transparent 1px 6px), color-mix(in oklab, var(--fw-text) 4%, transparent);
2043
- border-inline: 1px dashed color-mix(in oklab, var(--fw-text) 24%, transparent); }
2044
- .fw-root .fw-pause-label b { font-weight: 600; color: var(--fw-text); }
2045
- .fw-root .fw-pause-label { position: absolute; z-index: 2; top: 50%; left: calc(var(--fw-pad) + ((var(--s) + var(--e)) / 2 - var(--fw-v0)) * var(--fw-k) * 1px); translate: -50% -50%; width: max-content; padding: 0 8px; white-space: nowrap;
2046
- border-radius: 4px; font-size: 12px; line-height: 20px; color: var(--fw-muted); background: var(--fw-surface); box-shadow: inset 0 0 0 1px var(--fw-border); }
2047
- /* The label takes the pointer, for its reason; the band stays click-through to the rows. */
2048
- .fw-root .fw-pause-label[title] { pointer-events: auto; cursor: help; }
2049
- .fw-root .fw-marker-label { position: absolute; top: 2px; left: 3px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; border-radius: 4px; font-size: 12px; line-height: 16px; color: var(--fw-marker); background: var(--fw-surface); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--fw-marker) 40%, transparent); }
2040
+ /* A pause: the run stood still. A faint band behind the rows (they stay readable over it), and on the axis a hatched strip under
2041
+ the ticks that names its length and reason on hover and focus; a chip over the axis hid the hour ticks. */
2042
+ .fw-root :is(.fw-pause, .fw-pause-mark) { position: absolute; left: calc(var(--fw-pad) + (var(--s) - var(--fw-v0)) * var(--fw-k) * 1px); width: calc(max(0, var(--e) - var(--s)) * var(--fw-k) * 1px); }
2043
+ .fw-root .fw-pause { top: 0; bottom: 0; background: color-mix(in oklab, var(--fw-text) 4%, transparent); border-inline: 1px dashed color-mix(in oklab, var(--fw-text) 18%, transparent); }
2044
+ .fw-root .fw-pause-mark { bottom: 3px; height: 6px; border-radius: 2px; cursor: help;
2045
+ background: repeating-linear-gradient(-45deg, var(--fw-hatch) 0 1px, transparent 1px 4px); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--fw-text) 18%, transparent); }
2046
+ .fw-root .fw-marker-label { position: absolute; top: 2px; left: 3px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; border-radius: var(--radius-tag); font-size: 12px; line-height: 16px; color: var(--fw-marker); background: var(--fw-surface); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--fw-marker) 40%, transparent); }
2050
2047
  .fw-root .fw-marker-label-left { left: auto; right: 3px; }
2051
2048
  .fw-root .fw-marker[data-tone="warn"], .fw-root .fw-event[data-tone="warn"] { --fw-marker: var(--fw-amber); }
2052
2049
  /* The event track: one dot per marker on the axis; click or N/P moves the cursor there. */
2053
2050
  .fw-root .fw-event { --fw-marker: var(--fw-muted); position: absolute; bottom: 2px; width: 8px; height: 8px; margin-left: -4px; padding: 0; border: 0; border-radius: 50%; background: var(--fw-marker); box-shadow: 0 0 0 2px var(--fw-surface); cursor: pointer; z-index: 4; left: calc(var(--fw-pad) + (var(--s) - var(--fw-v0)) * var(--fw-k) * 1px); }
2054
2051
  .fw-root .fw-event[data-tone="ok"] { --fw-marker: var(--fw-ok); }
2055
2052
  .fw-root .fw-event[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--fw-surface), 0 0 0 4px var(--fw-marker); }
2056
- .fw-root .fw-event-label { position: absolute; bottom: 14px; z-index: 5; transform: translateX(-50%); left: calc(var(--fw-pad) + (var(--s) - var(--fw-v0)) * var(--fw-k) * 1px); padding: 0 8px; border-radius: 4px; background: var(--fw-surface); box-shadow: inset 0 0 0 1px var(--fw-border); color: var(--fw-text); font-size: 12px; line-height: 20px; white-space: nowrap; pointer-events: none; }
2053
+ .fw-root .fw-event-label { position: absolute; bottom: 14px; z-index: 5; transform: translateX(-50%); left: calc(var(--fw-pad) + (var(--s) - var(--fw-v0)) * var(--fw-k) * 1px); padding: 0 8px; border-radius: var(--radius-tag); background: var(--fw-surface); box-shadow: inset 0 0 0 1px var(--fw-border); color: var(--fw-text); font-size: 12px; line-height: 20px; white-space: nowrap; pointer-events: none; }
2057
2054
  .fw-root .fw-event[data-tone="failed"] { --fw-marker: var(--fw-failed); }
2058
2055
  .fw-root .fw-event:hover, .fw-root .fw-event:focus-visible { transform: scale(1.4); outline: 0; }
2059
2056
  .fw-root .fw-cursor { position: absolute; top: 0; bottom: 0; width: 1px; background: color-mix(in oklab, var(--fw-text) 70%, transparent); left: calc(var(--fw-pad) + (var(--fw-t) - var(--fw-v0)) * var(--fw-k) * 1px); }
2060
2057
  .fw-root .fw-empty { padding: 40px 16px; text-align: center; color: var(--fw-muted); }
2061
- .fw-root .fw-sticky { position: absolute; top: 0; left: 0; right: 0; z-index: 2; background: var(--fw-surface); box-shadow: 0 1px 0 var(--fw-border), 0 6px 12px -8px rgb(0 0 0 / .35); }
2058
+ .fw-root .fw-sticky { position: absolute; top: 0; left: 0; right: 0; z-index: 2; background: var(--fw-surface); box-shadow: 0 1px 0 var(--fw-border), var(--shadow-card); }
2062
2059
  /* Rows */
2063
2060
  .fw-root .fw-row { position: absolute; top: 0; left: 0; right: 0; transform: translateY(var(--row-y)); height: var(--fw-row-h); display: grid; grid-template-columns: var(--fw-label-col) minmax(0, 1fr); outline: 0; contain: layout style; }
2064
- .fw-root .fw-row:hover { background: var(--fw-hover); }
2065
- .fw-root .fw-row.fw-active { background: color-mix(in oklab, var(--fw-accent) 7%, transparent); }
2066
- .fw-root .fw-row[aria-selected="true"] { background: color-mix(in oklab, var(--fw-accent) 11%, transparent); }
2067
- /* A selected agent lifts: an accent edge on its row, and its peers recede so the reader sees what the panels below follow. */
2061
+ /* A row's tint is one variable, so the chips on it (an end label, a stacked name) paint the same plane as the row. */
2062
+ .fw-root .fw-row { background: var(--fw-tint, transparent); }
2063
+ .fw-root .fw-row:hover { --fw-tint: var(--fw-hover); }
2064
+ .fw-root .fw-row.fw-active { --fw-tint: color-mix(in oklab, var(--fw-accent) 7%, transparent); }
2065
+ .fw-root .fw-row[aria-selected="true"] { --fw-tint: var(--ix-sel-bg); }
2066
+ /* A selected agent lifts: an accent edge on its row, and its peers' marks recede; their names and labels keep the muted ink, which
2067
+ reads at 4.5:1, where fading whole cells dropped them to 2.2:1 and let connectors and pause bands show through the text. */
2068
2068
  .fw-root-agents[data-selection] .fw-row[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--fw-accent); }
2069
- .fw-root-agents[data-selection] .fw-row:not([aria-selected="true"]) > [role="gridcell"] { opacity: .45; transition: opacity 160ms var(--fw-ease); }
2070
- .fw-root-agents[data-selection] .fw-row:not([aria-selected="true"]):hover > [role="gridcell"] { opacity: .8; }
2069
+ .fw-root-agents[data-selection] .fw-row:not([aria-selected="true"]) { --fw-recede: .4; }
2070
+ .fw-root-agents[data-selection] .fw-row:not([aria-selected="true"]):hover { --fw-recede: .8; }
2071
+ .fw-root-agents[data-selection] .fw-row:not([aria-selected="true"]) .fw-span-name { color: var(--fw-muted); }
2071
2072
  .fw-root .fw-row:focus-visible { box-shadow: inset 2px 0 0 var(--fw-accent); }
2072
2073
  .fw-root .fw-sticky-row { background: var(--fw-surface); }
2073
2074
  .fw-root .fw-label { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 12px 0 calc(12px + var(--depth) * 16px); border-right: 1px solid var(--fw-border); }
2074
2075
  .fw-root .fw-guides { position: absolute; top: 0; bottom: 0; left: 20px; width: calc(var(--depth) * 16px); background: repeating-linear-gradient(90deg, var(--fw-guide) 0 1px, transparent 1px 16px); }
2075
2076
  .fw-root .fw-toggle, .fw-root .fw-toggle-space { flex: 0 0 16px; width: 16px; height: 16px; }
2076
- .fw-root .fw-toggle { appearance: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--fw-muted); cursor: pointer; }
2077
+ .fw-root .fw-toggle { appearance: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--radius-tag); background: transparent; color: var(--fw-muted); cursor: pointer; }
2077
2078
  .fw-root .fw-toggle svg { width: 12px; height: 12px; transition: transform 160ms var(--fw-ease); }
2078
2079
  .fw-root .fw-toggle.fw-open svg { transform: rotate(90deg); }
2079
2080
  .fw-root .fw-toggle:hover { background: var(--fw-hover); color: var(--fw-text); }
2080
- .fw-root .fw-icon-tile { flex: 0 0 20px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--fw-border); background: var(--fw-surface); color: var(--line, var(--fw-muted)); }
2081
+ .fw-root .fw-icon-tile { flex: 0 0 20px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: var(--radius-sm); border: 1px solid var(--fw-border); background: var(--fw-surface); color: var(--line, var(--fw-muted)); }
2081
2082
  .fw-root .fw-icon-tile :is(svg, img) { width: 13px; height: 13px; }
2082
2083
  .fw-root .fw-row .fw-names { font-size: 14px; }
2083
2084
  .fw-root .fw-names { display: flex; align-items: baseline; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; }
@@ -2087,7 +2088,7 @@
2087
2088
  .fw-root .fw-detail { color: var(--fw-muted); overflow: hidden; min-width: 0; display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
2088
2089
  .fw-root .fw-detail-icon { display: inline-flex; }
2089
2090
  .fw-root .fw-detail-icon :is(svg, img) { width: 12px; height: 12px; }
2090
- .fw-root .fw-count { flex-shrink: 0; height: 18px; padding: 0 8px; border-radius: 999px; background: var(--fw-well); border: 1px solid var(--fw-border); color: var(--fw-muted); font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; }
2091
+ .fw-root .fw-count { flex-shrink: 0; height: 18px; padding: 0 8px; border-radius: var(--radius-pill); background: var(--fw-well); border: 1px solid var(--fw-border); color: var(--fw-muted); font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; }
2091
2092
  .fw-root .fw-alert { display: inline-flex; color: var(--fw-failed); flex-shrink: 0; }
2092
2093
  .fw-root .fw-alert svg { width: 13px; height: 13px; }
2093
2094
  .fw-root .fw-spinner { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid color-mix(in oklab, var(--fw-accent) 30%, transparent); border-top-color: var(--fw-accent); animation: fw-spin .8s linear infinite; flex-shrink: 0; }
@@ -2095,10 +2096,10 @@
2095
2096
  .fw-root .fw-view-agents .fw-label { padding-left: 16px; gap: 12px; border-right: 0; }
2096
2097
  .fw-root .fw-view-agents .fw-names { flex-direction: column; align-items: flex-start; gap: 0; }
2097
2098
  .fw-root .fw-view-agents .fw-span-name { font-weight: 600; line-height: 18px; }
2098
- /* One 16 px line that wraps its last part out of sight: when the line is full the tool count drops whole, never "7 to…". */
2099
- .fw-root .fw-view-agents .fw-subtitle { display: flex; align-items: center; column-gap: 4px; height: 16px; overflow: hidden; max-width: 100%; min-width: 0; color: var(--fw-muted); font-size: 13px; line-height: 16px; }
2099
+ /* One 16 px line that wraps its last parts out of sight: when the line is full a count drops whole, never "48 …". */
2100
+ .fw-root .fw-view-agents .fw-subtitle { display: flex; align-items: center; column-gap: 4px; height: 16px; overflow: hidden; max-width: 100%; min-width: 0; color: var(--fw-muted); font-size: 12px; line-height: 16px; }
2100
2101
  .fw-root .fw-view-agents .fw-subtitle-extra { flex: none; white-space: nowrap; }
2101
- /* Only the tail wraps, so the text is always first on its line and shrinks with an ellipsis; the tool count wraps out of sight. */
2102
+ /* Only the tail wraps, so the first part is always on its line and shrinks with an ellipsis; later parts wrap out of sight. */
2102
2103
  .fw-root .fw-view-agents .fw-subtitle-tail { display: flex; flex-wrap: wrap; column-gap: 4px; height: 16px; overflow: hidden; min-width: 0; flex: 0 1 auto; }
2103
2104
  .fw-root .fw-view-agents .fw-subtitle-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2104
2105
  .fw-root .fw-view-agents .fw-detail-icon { flex: none; width: 16px; height: 16px; align-items: center; justify-content: center; overflow: hidden; }
@@ -2116,6 +2117,7 @@
2116
2117
  left: var(--x0);
2117
2118
  opacity: var(--on);
2118
2119
  }
2120
+ .fw-root :is(.fw-bar, .fw-seg, .fw-mark) { opacity: calc(var(--on) * var(--fw-recede, 1)); transition: opacity 160ms var(--fw-ease); }
2119
2121
  .fw-root .fw-enter > [role="gridcell"] { animation: fw-unfold 220ms var(--fw-ease) var(--fw-enter-delay) both; }
2120
2122
  .fw-root .fw-enter :is(.fw-bar, .fw-seg) { animation: fw-grow 420ms var(--fw-ease) var(--fw-enter-delay) both; }
2121
2123
  .fw-root .fw-enter .fw-end { animation: fw-land 220ms var(--fw-ease) calc(var(--fw-enter-delay) + 300ms) both; }
@@ -2130,9 +2132,9 @@
2130
2132
  .fw-root .fw-row[data-search="match"] .fw-name-text { font-weight: 600; }
2131
2133
  /* A restart: an amber notch through the bar at that moment; the bar keeps its own state. */
2132
2134
  .fw-root .fw-mark { position: absolute; z-index: 2; left: calc(var(--x0) - 1px); width: 2px; top: calc(50% + var(--fw-bar-shift) - var(--fw-bar-h) / 2 - 4px); height: calc(var(--fw-bar-h) + 8px);
2133
- border-radius: 2px; background: var(--fw-amber); box-shadow: 0 0 0 1px var(--fw-surface); opacity: var(--on); pointer-events: auto; }
2135
+ border-radius: 2px; background: var(--fw-amber); box-shadow: 0 0 0 1px var(--fw-surface); pointer-events: auto; }
2134
2136
  /* Centered by top, not a negative margin, so measured spacing stays on the grid. */
2135
- .fw-root :is(.fw-bar, .fw-seg) { top: calc(50% + var(--fw-bar-shift) - var(--fw-bar-h) / 2); height: var(--fw-bar-h); width: max(var(--w), calc(var(--on) * 3px)); border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: hidden; }
2137
+ .fw-root :is(.fw-bar, .fw-seg) { top: calc(50% + var(--fw-bar-shift) - var(--fw-bar-h) / 2); height: var(--fw-bar-h); width: max(var(--w), calc(var(--on) * 3px)); border-radius: var(--radius-tag); cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: hidden; }
2136
2138
  .fw-root .fw-bar { background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
2137
2139
  /* The mark under the pointer lifts: a brighter fill and a ring in its own tone. */
2138
2140
  .fw-root :is(.fw-bar, .fw-seg):hover { filter: brightness(1.18); box-shadow: inset 0 0 0 1px var(--line), 0 0 0 2px color-mix(in oklab, var(--line) 55%, transparent); z-index: 1; }
@@ -2156,7 +2158,8 @@
2156
2158
  /* Muted agents (the default): one quiet tone for every agent bar, its steps and handoffs; the slowest agent alone takes amber, and
2157
2159
  failure keeps its red glyph, so color only ever means state. */
2158
2160
  .fw-root.fw-fill-muted .fw-view-agents [data-tone] { --tone: var(--fw-h0); }
2159
- .fw-root:is(.fw-fill-muted, .fw-fill-agent) .fw-view-agents .fw-row[data-slowest], .fw-root:is(.fw-fill-muted, .fw-fill-agent) .fw-view-agents .fw-row[data-slowest] [data-tone] { --tone: var(--fw-amber); }
2161
+ /* With per-agent hues the slowest agent keeps its own hue and says so with the amber pill (round 27: an amber-brown bar read "muddy"). */
2162
+ .fw-root.fw-fill-muted .fw-view-agents .fw-row[data-slowest], .fw-root.fw-fill-muted .fw-view-agents .fw-row[data-slowest] [data-tone] { --tone: var(--fw-amber); }
2160
2163
  .fw-root [data-outcome="ok"], .fw-root [data-outcome="ok"] [data-tone] { --tone: var(--fw-ok); }
2161
2164
  .fw-root [data-outcome="failed"], .fw-root [data-outcome="failed"] [data-tone] { --tone: var(--fw-failed); }
2162
2165
  .fw-root [data-outcome="warn"], .fw-root [data-outcome="warn"] [data-tone] { --tone: var(--fw-amber); }
@@ -2173,13 +2176,12 @@
2173
2176
  .fw-root .fw-kinds .fw-swatch-tool { width: 12px; height: 8px; border-radius: 2px; background: var(--fw-kind-tool); }
2174
2177
  .fw-root .fw-kinds .fw-swatch-wait { width: 12px; height: 8px; border-radius: 2px; background: color-mix(in oklab, var(--fw-text) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--fw-text) 18%, transparent); }
2175
2178
  .fw-root .fw-kinds .fw-swatch-handoff { width: 10px; height: 8px; border-left: 1.5px solid var(--fw-muted); border-bottom: 1.5px solid var(--fw-muted); border-bottom-left-radius: 3px; }
2176
- .fw-root .fw-kinds .fw-swatch-failed { width: 12px; height: 8px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--fw-failed); }
2177
2179
  .fw-root .fw-description { margin: 0; color: var(--fw-muted); font-size: 14px; line-height: 20px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2178
2180
  .fw-root .fw-legend .fw-swatch { width: 12px; height: 8px; border-radius: 2px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
2179
2181
  .fw-root .fw-legend b { color: var(--fw-text); font-weight: 600; font-variant-numeric: tabular-nums; }
2180
2182
  .fw-root .fw-legend .fw-swatch-step { display: inline-grid; place-items: center; width: 12px; height: 12px; border-radius: 3px; background: var(--fw-well); color: var(--fw-failed); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--fw-failed) 50%, transparent); }
2181
2183
  .fw-root .fw-legend .fw-swatch-step svg { width: 8px; height: 8px; }
2182
- .fw-root .fw-bar.fw-approx { opacity: calc(var(--on) * .7); }
2184
+ .fw-root .fw-bar.fw-approx { opacity: calc(var(--on) * .7 * var(--fw-recede, 1)); }
2183
2185
  .fw-root .fw-seg { width: max(calc(var(--w) - 2px), calc(var(--on) * 3px)); pointer-events: none; }
2184
2186
  .fw-root .fw-view-agents .fw-seg { pointer-events: auto; }
2185
2187
  .fw-root .fw-seg-model { background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
@@ -2189,42 +2191,59 @@
2189
2191
  .fw-root:is(.fw-fill-muted, .fw-fill-outcome) .fw-view-agents .fw-seg-model { background: var(--fw-kind-model); box-shadow: none; }
2190
2192
  .fw-root:is(.fw-fill-muted, .fw-fill-outcome) .fw-view-agents .fw-seg-tool { background: var(--fw-kind-tool); box-shadow: none; }
2191
2193
  /* Per-agent hues at full saturation (blind round 26: muted per-agent bars "blur together", "wash out on white"): kind is a darker or
2192
- lighter step of the agent's own saturated hue, every solid segment at least 3:1 against the card; waiting stays the only pale fill. */
2193
- .fw-root.fw-fill-agent .fw-view-agents .fw-seg-model { background: light-dark(color-mix(in oklab, var(--tone) 78%, #000), var(--tone)); box-shadow: none; }
2194
- .fw-root.fw-fill-agent .fw-view-agents .fw-seg-tool { background: light-dark(var(--tone), color-mix(in oklab, var(--tone) 72%, #fff)); box-shadow: none; }
2194
+ lighter step of the agent's own saturated hue; waiting stays the only pale fill. Light theme sits one step softer (round 27: the
2195
+ saturated light bars read "heavy"). */
2196
+ .fw-root.fw-fill-agent .fw-view-agents .fw-seg-model { background: light-dark(color-mix(in oklab, var(--tone) 88%, var(--fw-text)), var(--tone)); box-shadow: none; }
2197
+ .fw-root.fw-fill-agent .fw-view-agents .fw-seg-tool { background: light-dark(color-mix(in oklab, var(--tone) 84%, var(--fw-surface)), color-mix(in oklab, var(--tone) 72%, var(--fw-text))); box-shadow: none; }
2195
2198
  /* A failed turn is still the agent's work: it keeps the agent's saturated hue, and the red cross on the ending turn says it failed. */
2196
- .fw-root.fw-fill-agent .fw-view-agents .fw-seg-failed { background: light-dark(var(--tone), color-mix(in oklab, var(--tone) 72%, #fff)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--fw-failed) 55%, transparent); }
2197
- .fw-root .fw-view-agents .fw-seg-tool { container-type: inline-size; justify-content: flex-start; }
2198
- .fw-root .fw-seg-name { padding: 0 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; line-height: 16px; font-weight: 600; color: light-dark(#fff, #06222b); pointer-events: none; }
2199
- @container (max-width: 56px) { .fw-root .fw-seg-name { display: none; } }
2199
+ .fw-root.fw-fill-agent .fw-view-agents .fw-seg-failed { background: light-dark(color-mix(in oklab, var(--tone) 84%, var(--fw-surface)), color-mix(in oklab, var(--tone) 72%, var(--fw-text))); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--fw-failed) 55%, transparent); }
2200
+ .fw-root .fw-view-agents .fw-seg { container-type: inline-size; justify-content: flex-start; font-size: 12px; line-height: 16px; white-space: nowrap; color: var(--fw-seg-ink); }
2201
+ /* Label ink holds 4.5:1 on its fill: light text on the darker model step, a near-black of the agent's hue on the lighter tool step
2202
+ (round 28: white on the pale light-theme fills failed); on dark the steps are bright, so ink is the page's dark. */
2203
+ .fw-root .fw-view-agents .fw-seg-model { --fw-seg-ink: light-dark(var(--fw-surface), hsl(var(--hsl-background))); }
2204
+ .fw-root .fw-view-agents :is(.fw-seg-tool, .fw-seg-failed) { --fw-seg-ink: light-dark(color-mix(in oklab, var(--tone) 18%, black), hsl(var(--hsl-background))); }
2205
+ .fw-root .fw-view-agents .fw-seg > * { pointer-events: none; }
2206
+ /* One line, 6 px in from each end; a part that does not fit whole wraps to the hidden second line, so trailing parts drop first. */
2207
+ .fw-root .fw-seg-label { flex: 1; min-width: 0; height: 16px; margin: 0 6px; display: flex; flex-wrap: wrap; align-items: center; column-gap: 4px; overflow: hidden; }
2208
+ .fw-root .fw-seg-label > * { flex: none; height: 16px; display: inline-flex; align-items: center; }
2209
+ .fw-root .fw-seg-icon svg { width: 12px; height: 12px; stroke-width: 1.75; }
2210
+ .fw-root .fw-seg-name { font-weight: 600; }
2211
+ .fw-root .fw-seg-chip { padding: 0 4px; border-radius: var(--radius-pill); background: color-mix(in oklab, currentColor 18%, transparent); font-weight: 600; font-variant-numeric: tabular-nums; }
2212
+ .fw-root .fw-seg-meta { font-variant-numeric: tabular-nums; }
2213
+ @container (max-width: 24px) { .fw-root :is(.fw-seg-label, .fw-view-agents .fw-seg .fw-glyph) { display: none; } }
2214
+ /* Fail and retry read as filled chips inside the bar, red and amber, as the references draw them. */
2215
+ .fw-root .fw-view-agents .fw-seg .fw-glyph { flex: none; margin-left: 6px; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--fw-failed); color: light-dark(var(--fw-surface), hsl(var(--hsl-background))); }
2216
+ .fw-root .fw-view-agents .fw-seg .fw-glyph[data-glyph="retry"] { background: var(--fw-amber); }
2217
+ .fw-root .fw-view-agents .fw-seg .fw-glyph svg { width: 9px; height: 9px; stroke-width: 2.5; }
2200
2218
  .fw-root:is(.fw-fill-muted, .fw-fill-outcome) .fw-view-agents :is(.fw-seg-alt.fw-seg-model, .fw-seg-alt.fw-seg-tool) { filter: brightness(.88); }
2201
2219
  .fw-root .fw-seg-failed { background: color-mix(in oklab, var(--fw-failed) 18%, var(--fw-surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--fw-failed) 70%, transparent); color: var(--fw-failed); }
2202
2220
  /* In the agent view a failed turn draws like any turn; the agent's own failure shows once, by its name and its end label. */
2203
2221
  .fw-root .fw-view-agents .fw-seg-failed { background: var(--dim); box-shadow: inset 0 0 0 1px var(--dim-line); }
2204
2222
  .fw-root .fw-glyph { display: inline-flex; color: currentColor; }
2205
2223
  .fw-root .fw-glyph svg { width: 11px; height: 11px; stroke-width: 2; }
2206
- .fw-root .fw-seg-model .fw-glyph, .fw-root .fw-k-model .fw-glyph { color: light-dark(var(--tone), #fff); }
2224
+ .fw-root .fw-seg-model .fw-glyph, .fw-root .fw-k-model .fw-glyph { color: light-dark(var(--tone), var(--fw-text)); }
2207
2225
  /* End labels sit on the surface, so connectors and event lines stop at them, and never run past the lane: a label that would
2208
2226
  be cut at the right edge slides back over its bar's tail instead. */
2209
2227
  .fw-root .fw-end { z-index: 2; display: inline-flex; align-items: center; gap: 8px; top: calc(50% + var(--fw-bar-shift) - var(--fw-bar-h) / 2); height: var(--fw-bar-h);
2210
- left: min(calc(var(--x0) + max(var(--w), 3px) + 4px), calc(100% - var(--fw-end-w, 0px) - 4px)); padding: 0 4px; border-radius: 4px; background: var(--fw-surface); white-space: nowrap; pointer-events: none; }
2228
+ left: min(calc(var(--x0) + max(var(--w), 3px) + 4px), calc(100% - var(--fw-end-w, 0px) - 4px)); padding: 0 4px; border-radius: var(--radius-tag);
2229
+ background: linear-gradient(var(--fw-tint, transparent) 0 0), var(--fw-surface); white-space: nowrap; pointer-events: none; }
2211
2230
  .fw-root .fw-duration { font-size: 12px; color: var(--fw-muted); font-variant-numeric: tabular-nums; }
2212
2231
  .fw-root .fw-k-failed ~ .fw-end .fw-duration { color: var(--fw-failed); }
2213
- .fw-root .fw-badge { height: 18px; padding: 0 8px; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--fw-amber); background: color-mix(in oklab, var(--fw-amber) 13%, transparent); border: 1px solid color-mix(in oklab, var(--fw-amber) 28%, transparent); }
2232
+ .fw-root .fw-badge { height: 18px; padding: 0 8px; border-radius: var(--radius-pill); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--fw-amber); background: color-mix(in oklab, var(--fw-amber) 13%, transparent); border: 1px solid color-mix(in oklab, var(--fw-amber) 28%, transparent); }
2214
2233
  /* Handoff elbows: 1.5 px stroke, 6 px radius, a 5 px dot where the handoff leaves its sender. */
2215
2234
  /* Under the rows (which follow it), so end labels and badges always sit above the connectors. */
2216
2235
  .fw-root .fw-links { position: absolute; top: 0; bottom: 0; left: var(--fw-label-col); right: 0; overflow: hidden; pointer-events: none; z-index: 0; }
2217
2236
  .fw-root .fw-link {
2218
2237
  --x: calc(var(--fw-pad) + (var(--s) - var(--fw-v0)) * var(--fw-k) * 1px);
2219
- position: absolute; width: 8px; border: 0 solid var(--line); border-bottom-width: 1.5px; translate: 0 var(--fw-bar-shift);
2238
+ position: absolute; width: 12px; border: 0 solid var(--line); border-bottom-width: 1.5px; translate: 0 var(--fw-bar-shift);
2220
2239
  opacity: clamp(0, (var(--fw-t) - var(--s)) * 1000, 1);
2221
2240
  }
2222
2241
  .fw-root .fw-view-spans .fw-link { opacity: calc(clamp(0, (var(--fw-t) - var(--s)) * 1000, 1) * .7); }
2223
2242
  /* Agent-view connectors rest faint, one curved elbow per spawn in the agent's hue (they show who started whom), and come to
2224
2243
  full strength for the agent under the pointer, pinned or focused. */
2225
- .fw-root .fw-view-agents .fw-link:not(.fw-link-hot) { opacity: calc(clamp(0, (var(--fw-t) - var(--s)) * 1000, 1) * .6); }
2244
+ .fw-root .fw-view-agents .fw-link:not(.fw-link-hot) { opacity: calc(clamp(0, (var(--fw-t) - var(--s)) * 1000, 1) * .8); }
2226
2245
  .fw-root .fw-link { transition: opacity 160ms var(--fw-ease); }
2227
- .fw-root .fw-link-down { left: calc(var(--x) - 8px); border-left-width: 1.5px; border-bottom-left-radius: 12px; }
2246
+ .fw-root .fw-link-down { left: calc(var(--x) - 12px); border-left-width: 1.5px; border-bottom-left-radius: 12px; }
2228
2247
  .fw-root .fw-link-up { left: var(--x); border-right-width: 1.5px; border-bottom-right-radius: 12px; }
2229
2248
  .fw-root .fw-link::before { content: ""; position: absolute; top: -3.5px; width: 5px; height: 5px; border-radius: 50%; background: var(--line); box-shadow: 0 0 0 1.5px var(--fw-surface); }
2230
2249
  .fw-root .fw-link-down::before { left: -3.25px; }
@@ -2237,39 +2256,41 @@
2237
2256
  /* The playhead: a round knob on a thin neutral track, visible at rest without outweighing the chart. */
2238
2257
  .fw-root.fw-root-agents .fw-slider::-webkit-slider-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--fw-text); box-shadow: 0 0 0 3px var(--fw-surface); }
2239
2258
  .fw-root.fw-root-agents .fw-slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--fw-text); box-shadow: 0 0 0 3px var(--fw-surface); }
2240
- .fw-root .fw-card { position: absolute; z-index: 20; width: 320px; padding: 12px; border-radius: 12px; background: var(--fw-raised); border: 1px solid var(--fw-border);
2241
- box-shadow: 0 12px 32px -8px rgb(0 0 0 / .28), 0 2px 6px rgb(0 0 0 / .08); animation: fw-arrive 140ms var(--fw-ease); }
2259
+ .fw-root .fw-card { position: absolute; z-index: 20; width: min(320px, calc(100% - 16px)); padding: 12px; border-radius: var(--radius-xl); background: var(--fw-raised); border: 1px solid var(--fw-border);
2260
+ box-shadow: var(--shadow-dropdown); animation: fw-arrive 140ms var(--fw-ease); }
2242
2261
  /* A hover card never covers the next mark: only a pinned card (a dialog) takes the pointer. */
2243
2262
  .fw-root .fw-card[role="tooltip"] { pointer-events: none; }
2244
2263
  .fw-root .fw-card-above .fw-card { transform: translateY(-100%); animation-name: fw-arrive-above; }
2245
2264
  .fw-root .fw-card-agent { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; font-weight: 600; }
2246
2265
  .fw-root .fw-card-agent .fw-agent-dot { align-self: center; }
2247
- .fw-root .fw-card-head { display: flex; align-items: flex-start; gap: 8px; }
2248
- .fw-root .fw-card-head .fw-icon-tile { flex-basis: 28px; width: 28px; height: 28px; border-radius: 8px; }
2266
+ .fw-root .fw-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
2267
+ .fw-root .fw-card-head .fw-icon-tile { flex-basis: 28px; width: 28px; height: 28px; border-radius: var(--radius-md); }
2249
2268
  .fw-root .fw-card-head .fw-icon-tile :is(svg, img) { width: 16px; height: 16px; }
2250
- .fw-root .fw-card-title { flex: 1; min-width: 0; }
2251
- .fw-root .fw-card-name { font-size: 14px; line-height: 20px; font-weight: 600; overflow-wrap: anywhere; }
2252
- .fw-root .fw-muted { color: var(--fw-muted); }
2253
- .fw-root .fw-pill { flex-shrink: 0; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 12px; line-height: 20px; font-weight: 600; }
2269
+ .fw-root .fw-card-name { flex: 1; min-width: 0; font-size: 14px; line-height: 20px; font-weight: 600; overflow-wrap: anywhere; }
2270
+ .fw-root .fw-pill { flex-shrink: 0; height: 20px; padding: 0 8px; border-radius: var(--radius-pill); font-size: 12px; line-height: 20px; font-weight: 600; }
2254
2271
  .fw-root .fw-pill-done { color: var(--fw-ok); background: color-mix(in oklab, var(--fw-ok) 13%, transparent); }
2255
2272
  .fw-root .fw-pill-running { color: var(--fw-accent); background: color-mix(in oklab, var(--fw-accent) 13%, transparent); }
2256
2273
  .fw-root .fw-pill-failed { color: var(--fw-failed); background: color-mix(in oklab, var(--fw-failed) 13%, transparent); }
2257
- .fw-root .fw-icon-button { appearance: none; display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--fw-muted); cursor: pointer; flex-shrink: 0; }
2274
+ .fw-root .fw-icon-button { appearance: none; display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--fw-muted); cursor: pointer; flex-shrink: 0; }
2258
2275
  .fw-root .fw-icon-button:hover:not(:disabled) { background: var(--fw-hover); color: var(--fw-text); }
2259
- .fw-root .fw-card-head .fw-icon-button { width: 20px; height: 20px; margin: 0 -4px 0 -4px; }
2260
- .fw-root .fw-card-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; margin-top: 12px; padding: 12px; border-radius: 8px; background: var(--fw-well); }
2261
- .fw-root .fw-card-stats dt, .fw-root .fw-card-label { font-size: 12px; line-height: 16px; color: var(--fw-muted); }
2262
- .fw-root .fw-card-stats dd { font-size: 14px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
2263
- .fw-root .fw-unknown { color: var(--fw-muted); font-weight: 400; }
2276
+ .fw-root .fw-card-close { width: 20px; height: 20px; margin-right: -4px; }
2277
+ /* The card's table: label and value on one line each, every value with its unit; a tool breakdown sits under its total. */
2278
+ .fw-root .fw-card-table { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; padding-top: 8px; border-top: 1px solid var(--fw-border); font-size: 12px; line-height: 16px; }
2279
+ .fw-root .fw-card-table > div { display: contents; }
2280
+ .fw-root .fw-card-table dt, .fw-root .fw-card-label { font-size: 12px; line-height: 16px; color: var(--fw-muted); }
2281
+ .fw-root .fw-card-table dd { min-width: 0; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
2282
+ /* A value of several parts wraps between parts, never inside one ("4.0M" / "cached"). */
2283
+ .fw-root .fw-card-parts { display: flex; flex-wrap: wrap; column-gap: 4px; }
2284
+ .fw-root .fw-card-parts > * { white-space: nowrap; }
2285
+ .fw-root .fw-card-parts > * + *::before { content: "· "; color: var(--fw-muted); }
2286
+ .fw-root .fw-card-tools { display: grid; grid-template-columns: minmax(0, max-content) max-content; justify-content: start; column-gap: 16px; margin-top: 4px; color: var(--fw-muted); font-weight: 400; }
2287
+ .fw-root .fw-card-tools > span { display: contents; }
2288
+ .fw-root .fw-card-tools > span > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2289
+ .fw-root .fw-card-tools > span > :last-child { text-align: right; }
2264
2290
  .fw-root .fw-card-text { margin-top: 12px; }
2265
- .fw-root .fw-card-compact { width: 280px; padding: 12px; }
2266
- .fw-root .fw-card-compact .fw-card-agent { margin-bottom: 8px; font-size: 14px; line-height: 20px; }
2291
+ .fw-root .fw-card-compact .fw-card-agent { font-size: 14px; line-height: 20px; }
2267
2292
  .fw-root .fw-card-who { min-width: 0; flex: 1; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
2268
- .fw-root .fw-card-detail { margin: -4px 0 8px 16px; color: var(--fw-muted); font-size: 12px; line-height: 16px; overflow-wrap: anywhere; }
2269
2293
  .fw-root .fw-pill-outcome { color: var(--line); background: color-mix(in oklab, var(--tone) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tone) 35%, transparent); }
2270
- .fw-root .fw-card-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; padding: 8px 12px; border-radius: 8px; background: var(--fw-well); }
2271
- .fw-root .fw-card-cells dt { font-size: 12px; line-height: 16px; color: var(--fw-muted); }
2272
- .fw-root .fw-card-cells dd { font-size: 14px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
2273
2294
  .fw-root .fw-card-step { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--fw-border); color: var(--fw-muted); font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
2274
2295
  .fw-root .fw-card-result { margin-top: 8px; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
2275
2296
  .fw-root .fw-card-text p { margin-top: 4px; color: var(--fw-text); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@@ -2278,9 +2299,11 @@
2278
2299
  .fw-root .fw-round-button { appearance: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid var(--fw-border); background: var(--fw-well); color: var(--fw-text); cursor: pointer; transition: background-color 120ms var(--fw-ease), transform 120ms var(--fw-ease); }
2279
2300
  .fw-root .fw-round-button:hover:not(:disabled) { background: var(--fw-hover); }
2280
2301
  .fw-root .fw-round-button:active:not(:disabled) { transform: scale(.94); }
2281
- .fw-root .fw-speed select { appearance: none; height: 28px; padding: 0 24px 0 12px; border-radius: 8px; border: 1px solid var(--fw-border); background: var(--fw-well) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='m2 3.5 3 3 3-3' fill='none' stroke='%23888' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; }
2302
+ .fw-root .fw-speed { position: relative; display: inline-flex; }
2303
+ .fw-root .fw-speed::after { content: ""; position: absolute; top: 50%; right: 11px; width: 5px; height: 5px; border: solid var(--fw-muted); border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
2304
+ .fw-root .fw-speed select { appearance: none; height: 28px; padding: 0 28px 0 12px; border-radius: var(--radius-md); border: 1px solid var(--fw-border); background: var(--fw-well); font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; }
2282
2305
  .fw-root .fw-overview { position: relative; flex: 1 1 160px; min-width: 120px; height: 28px; }
2283
- .fw-root .fw-overview-marks { position: absolute; left: 0; right: 0; top: 8px; height: 12px; border-radius: 4px; background: var(--fw-well); overflow: hidden; box-shadow: inset 0 0 0 1px var(--fw-border); }
2306
+ .fw-root .fw-overview-marks { position: absolute; left: 0; right: 0; top: 8px; height: 12px; border-radius: var(--radius-tag); background: var(--fw-well); overflow: hidden; box-shadow: inset 0 0 0 1px var(--fw-border); }
2284
2307
  .fw-root .fw-ov { position: absolute; top: 2px; bottom: 2px; border-radius: 1px; }
2285
2308
  .fw-root .fw-ov.fw-seg-model, .fw-root .fw-ov.fw-seg-tool { background: var(--line); opacity: .75; }
2286
2309
  .fw-root .fw-ov.fw-seg-tool { opacity: .45; }
@@ -2334,9 +2357,9 @@
2334
2357
  /* The agent view keeps scrubbing on a hairline track; the lanes above already show the activity. */
2335
2358
  .fw-root-agents .fw-overview-marks { top: 13px; height: 2px; box-shadow: none; }
2336
2359
  .fw-root-agents .fw-overview-marks > * { display: none; }
2337
- .fw-root .fw-segmented { display: inline-flex; padding: 4px; border-radius: 10px; background: var(--fw-well); border: 1px solid var(--fw-border); }
2338
- .fw-root .fw-segmented button { appearance: none; border: 0; background: transparent; height: 26px; min-width: 36px; padding: 0 12px; border-radius: 8px; font-size: 14px; color: var(--fw-muted); cursor: pointer; font-variant-numeric: tabular-nums; transition: background-color 120ms var(--fw-ease), color 120ms var(--fw-ease); }
2339
- .fw-root .fw-segmented button[aria-checked="true"] { background: var(--fw-surface); color: var(--fw-text); box-shadow: 0 1px 2px rgb(0 0 0 / .14), 0 0 0 1px var(--fw-border); }
2360
+ .fw-root .fw-segmented { display: inline-flex; padding: 4px; border-radius: var(--radius-md); background: var(--fw-well); border: 1px solid var(--fw-border); }
2361
+ .fw-root .fw-segmented button { appearance: none; border: 0; background: transparent; height: 26px; min-width: 36px; padding: 0 12px; border-radius: var(--radius-sm); font-size: 14px; color: var(--fw-muted); cursor: pointer; font-variant-numeric: tabular-nums; transition: background-color 120ms var(--fw-ease), color 120ms var(--fw-ease); }
2362
+ .fw-root .fw-segmented button[aria-checked="true"] { background: var(--fw-surface); color: var(--fw-text); box-shadow: var(--shadow-card), 0 0 0 1px var(--fw-border); }
2340
2363
  /* Below 900 px the agent's name takes its own line above a full-width lane: nothing truncates and the bar keeps the width.
2341
2364
  (At 768 px a 28% column cut 15 of 17 names on a real 17-agent run.) */
2342
2365
  @container (max-width: 899px) {
@@ -2349,7 +2372,16 @@
2349
2372
  /* Elbows pass behind the name, not through its letters. A transform or layout containment would make each row
2350
2373
  its own stacking context and trap the name under the connector layer, so stacked rows place by top instead. */
2351
2374
  .fw-root-agents .fw-view-agents .fw-row { transform: none; top: var(--row-y); contain: style; }
2352
- .fw-root-agents .fw-view-agents .fw-label { position: absolute; z-index: 3; top: 0; left: 0; height: 20px; max-width: calc(100% - var(--fw-pad)); padding: 0 8px 0 var(--fw-pad); gap: 8px; align-items: center; pointer-events: none; overflow: hidden; border-radius: 0 4px 4px 0; background: var(--fw-surface); }
2375
+ /* The name row is a strip across the lane on the row's own plane, so gridlines, pauses and connectors show only in the bar row. */
2376
+ .fw-root-agents .fw-view-agents .fw-label { position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 20px; padding: 0 calc(var(--fw-end-w, 0px) + 12px) 0 var(--fw-pad); gap: 8px; align-items: center; pointer-events: none; overflow: hidden;
2377
+ background: linear-gradient(var(--fw-tint, transparent) 0 0), var(--fw-surface); }
2378
+ /* The duration and its badges take the strip's right end, past the name, so they never sit on a bar or across a connector. */
2379
+ .fw-root-agents .fw-view-agents .fw-end { z-index: 4; top: 0; height: 20px; left: auto; right: 4px; }
2380
+ .fw-root-agents .fw-view-agents .fw-mark { top: calc(50% + var(--fw-bar-shift) - var(--fw-bar-h) / 2 - 2px); height: calc(var(--fw-bar-h) + 4px); }
2381
+ }
2382
+ /* On a phone the name row holds the name and the duration; the outcome is the dot's color and the counts are the card's. */
2383
+ @container (max-width: 479px) {
2384
+ .fw-root-agents .fw-view-agents .fw-subtitle { display: none; }
2353
2385
  }
2354
2386
 
2355
2387
  @layer theme {
@@ -44,13 +44,20 @@ export interface ChatStreamCallbacks {
44
44
  /** The turn's intent line (`session.run.intent`): show it as a labeled status line until the first `onText`. */
45
45
  onIntent?: (intent: TurnIntentData) => void;
46
46
  onText?: (delta: string) => void;
47
- /** The next responder of a turn addressed to several agents starts: open a
48
- * new assistant block under this author; text that follows is theirs. */
47
+ /** A responder of a turn addressed to several agents, announced before any
48
+ * output; every responder is announced up front, in mention order. Open one
49
+ * live block per responder. */
49
50
  onSpeaker?: (speaker: {
50
51
  id: string;
51
52
  name: string;
52
53
  handle?: string;
53
54
  }) => void;
55
+ /** Fires before the callback of every event that carries `speaker` (the
56
+ * responder's agent id): responders answer at the same time, so the text,
57
+ * reasoning and tool events of several interleave and this says whose
58
+ * block each belongs to. A consumer that applies raw events reads
59
+ * `event.speaker` itself. */
60
+ onSpeakerEvent?: (speaker: string) => void;
54
61
  onReasoning?: (delta: string) => void;
55
62
  /** The message's reasoning so far, when it started and when it ended, after every reasoning delta and once
56
63
  * when thinking ends. Spread it onto `ReasoningRow`. `consumeChatStream` and `streamChatTurn` keep it;
@@ -151,7 +151,7 @@ import {
151
151
  withoutRecordGridCreated,
152
152
  withoutRecordGridRemoved,
153
153
  withoutRecordGridUpdate
154
- } from "../chunk-73AVOSH6.js";
154
+ } from "../chunk-YG3DSMPS.js";
155
155
  import {
156
156
  useInfiniteScroll
157
157
  } from "../chunk-UHSUY6H6.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-app",
3
- "version": "0.63.67",
3
+ "version": "0.63.70",
4
4
  "packageManager": "pnpm@11.28.8",
5
5
  "description": "Build agent applications with typed chat, tools, sandboxes, integrations, billing, and evaluation.",
6
6
  "keywords": [
@@ -805,8 +805,8 @@
805
805
  "@tangle-network/brand": "1.29.0",
806
806
  "@tangle-network/browser-agent-driver": "0.37.0",
807
807
  "@tangle-network/hub-sdk": "1.0.2",
808
- "@tangle-network/sandbox": "1.0.14",
809
- "@tangle-network/sandbox-ui": "1.0.0",
808
+ "@tangle-network/sandbox": "1.0.15",
809
+ "@tangle-network/sandbox-ui": "1.1.1",
810
810
  "@tangle-network/tcloud": "0.8.5",
811
811
  "@tangle-network/ui": "11.45.0",
812
812
  "@testing-library/dom": "^10.4.2",
@@ -1003,7 +1003,7 @@
1003
1003
  },
1004
1004
  "dependencies": {
1005
1005
  "@tangle-network/agent-trace-contract": "2.2.0",
1006
- "@tangle-network/charts": "0.21.15",
1006
+ "@tangle-network/charts": "0.21.19",
1007
1007
  "proper-lockfile": "4.1.2"
1008
1008
  }
1009
1009
  }