@tangle-network/charts 0.21.18 → 0.21.19
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/dist/react/flow-waterfall.css +13 -13
- package/dist/react/index.js +29 -26
- package/package.json +1 -1
|
@@ -298,22 +298,22 @@
|
|
|
298
298
|
.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; }
|
|
299
299
|
/* 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. */
|
|
300
300
|
.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); }
|
|
301
|
-
.fw-root .fw-view-agents .fw-seg { container-type: inline-size; justify-content: flex-start;
|
|
301
|
+
.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); }
|
|
302
|
+
/* 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
|
|
303
|
+
(round 28: white on the pale light-theme fills failed); on dark the steps are bright, so ink is the page's dark. */
|
|
304
|
+
.fw-root .fw-view-agents .fw-seg-model { --fw-seg-ink: light-dark(var(--fw-surface), hsl(var(--hsl-background))); }
|
|
305
|
+
.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))); }
|
|
302
306
|
.fw-root .fw-view-agents .fw-seg > * { pointer-events: none; }
|
|
303
|
-
/*
|
|
304
|
-
.fw-root .fw-
|
|
305
|
-
.fw-root .fw-seg-
|
|
307
|
+
/* 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. */
|
|
308
|
+
.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; }
|
|
309
|
+
.fw-root .fw-seg-label > * { flex: none; height: 16px; display: inline-flex; align-items: center; }
|
|
306
310
|
.fw-root .fw-seg-icon svg { width: 12px; height: 12px; stroke-width: 1.75; }
|
|
307
|
-
.fw-root .fw-seg-name {
|
|
308
|
-
.fw-root .fw-seg-chip {
|
|
309
|
-
.fw-root .fw-seg-meta {
|
|
310
|
-
|
|
311
|
-
@container (max-width: 180px) { .fw-root .fw-seg-cost { display: none; } }
|
|
312
|
-
@container (max-width: 96px) { .fw-root .fw-seg-meta { display: none; } }
|
|
313
|
-
@container (max-width: 56px) { .fw-root :is(.fw-seg-name, .fw-seg-chip) { display: none; } }
|
|
314
|
-
@container (max-width: 24px) { .fw-root :is(.fw-seg-icon, .fw-view-agents .fw-seg .fw-glyph) { display: none; } }
|
|
311
|
+
.fw-root .fw-seg-name { font-weight: 600; }
|
|
312
|
+
.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; }
|
|
313
|
+
.fw-root .fw-seg-meta { font-variant-numeric: tabular-nums; }
|
|
314
|
+
@container (max-width: 24px) { .fw-root :is(.fw-seg-label, .fw-view-agents .fw-seg .fw-glyph) { display: none; } }
|
|
315
315
|
/* Fail and retry read as filled chips inside the bar, red and amber, as the references draw them. */
|
|
316
|
-
.fw-root .fw-view-agents .fw-seg .fw-glyph { flex: none; 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))); }
|
|
316
|
+
.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))); }
|
|
317
317
|
.fw-root .fw-view-agents .fw-seg .fw-glyph[data-glyph="retry"] { background: var(--fw-amber); }
|
|
318
318
|
.fw-root .fw-view-agents .fw-seg .fw-glyph svg { width: 9px; height: 9px; stroke-width: 2.5; }
|
|
319
319
|
.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); }
|
package/dist/react/index.js
CHANGED
|
@@ -3396,32 +3396,35 @@ function Segment({ mark, events, agentView, ending }) {
|
|
|
3396
3396
|
className: "fw-glyph",
|
|
3397
3397
|
"data-glyph": glyph,
|
|
3398
3398
|
children: glyph === "fail" ? /* @__PURE__ */ jsx(FailGlyph, {}) : /* @__PURE__ */ jsx(RetryGlyph, {})
|
|
3399
|
-
}), agentView && /* @__PURE__ */ jsxs(
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
"
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3399
|
+
}), agentView && /* @__PURE__ */ jsxs("span", {
|
|
3400
|
+
className: "fw-seg-label",
|
|
3401
|
+
children: [
|
|
3402
|
+
/* @__PURE__ */ jsx("span", {
|
|
3403
|
+
className: "fw-seg-icon",
|
|
3404
|
+
"aria-hidden": true,
|
|
3405
|
+
children: /* @__PURE__ */ jsx(KindGlyph, {
|
|
3406
|
+
kind: model ? "model" : "tool",
|
|
3407
|
+
name: mark.tool ?? mark.name
|
|
3408
|
+
})
|
|
3409
|
+
}),
|
|
3410
|
+
name && /* @__PURE__ */ jsx("span", {
|
|
3411
|
+
className: "fw-seg-name",
|
|
3412
|
+
children: name
|
|
3413
|
+
}),
|
|
3414
|
+
mark.count > 1 && /* @__PURE__ */ jsxs("span", {
|
|
3415
|
+
className: "fw-seg-chip",
|
|
3416
|
+
children: ["×", mark.count]
|
|
3417
|
+
}),
|
|
3418
|
+
duration && /* @__PURE__ */ jsx("span", {
|
|
3419
|
+
className: "fw-seg-meta",
|
|
3420
|
+
children: duration
|
|
3421
|
+
}),
|
|
3422
|
+
mark.costUsd ? /* @__PURE__ */ jsx("span", {
|
|
3423
|
+
className: "fw-seg-meta",
|
|
3424
|
+
children: formatCost(mark.costUsd)
|
|
3425
|
+
}) : null
|
|
3426
|
+
]
|
|
3427
|
+
})]
|
|
3425
3428
|
});
|
|
3426
3429
|
}
|
|
3427
3430
|
/** A span the clock is inside: it grows live, or playback has not reached its end. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/charts",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.19",
|
|
4
4
|
"description": "Static SVG and HTML figures for benchmarks and operational timing. Draws from producer data and refuses what it cannot draw honestly.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|