@tangle-network/charts 0.21.16 → 0.21.17
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/index.d.ts +81 -1
- package/dist/react/index.js +1 -1
- package/package.json +1 -1
package/dist/react/index.d.ts
CHANGED
|
@@ -373,6 +373,86 @@ interface DotMapProps {
|
|
|
373
373
|
export declare const DOT_MAP_CATEGORIES: readonly string[];
|
|
374
374
|
export declare function DotMap({ positions, radii, colors, palette, extent, rects, labels, dimmed, selected, minPixelRadius, onHover, onSelect, describe, height, ariaLabel }: DotMapProps): import("react").JSX.Element;
|
|
375
375
|
//#endregion
|
|
376
|
+
//#region src/react/flow-waterfall-model.d.ts
|
|
377
|
+
/** A minimap mark on a parent row: merged descendant activity of one kind. */
|
|
378
|
+
interface FlowSegment {
|
|
379
|
+
startMs: number;
|
|
380
|
+
/** Infinity while running; the presentation clips it at the clock. */
|
|
381
|
+
endMs: number;
|
|
382
|
+
kind: 'model' | 'tool' | 'failed';
|
|
383
|
+
tone: number;
|
|
384
|
+
/** The first span merged into this mark, and how many were merged. */
|
|
385
|
+
id: string;
|
|
386
|
+
count: number;
|
|
387
|
+
retry: boolean;
|
|
388
|
+
/** In a family row, every other member's marks take a darker shade of the family's one hue. */
|
|
389
|
+
alt?: boolean;
|
|
390
|
+
/** The first merged span's name, e.g. a tool's: shown in the segment's tooltip, and in the bar when one step fits it. */
|
|
391
|
+
name?: string;
|
|
392
|
+
/** The tool every merged step shares (the name before " · "); undefined once the merged steps differ. */
|
|
393
|
+
tool?: string;
|
|
394
|
+
}
|
|
395
|
+
/** A row's direct steps: model and tool calls (failed ones included), the failed and retrying ones, and tool calls by tool. */
|
|
396
|
+
interface StepCounts {
|
|
397
|
+
model: number;
|
|
398
|
+
tool: number;
|
|
399
|
+
failed: number;
|
|
400
|
+
retried: number;
|
|
401
|
+
tools: Record<string, number>;
|
|
402
|
+
}
|
|
403
|
+
/** Tokens in, out and cached; a field nobody recorded stays undefined. */
|
|
404
|
+
interface TokenCounts {
|
|
405
|
+
prompt?: number;
|
|
406
|
+
completion?: number;
|
|
407
|
+
cached?: number;
|
|
408
|
+
}
|
|
409
|
+
interface FlowWaterfallRow {
|
|
410
|
+
id: string;
|
|
411
|
+
parentId?: string;
|
|
412
|
+
name: string;
|
|
413
|
+
kind: FlowSpan['kind'];
|
|
414
|
+
durationLabel: string;
|
|
415
|
+
approx: boolean;
|
|
416
|
+
ok: boolean;
|
|
417
|
+
depth: number;
|
|
418
|
+
hasChildren: boolean;
|
|
419
|
+
span: FlowSpan;
|
|
420
|
+
/** Agent hue: the index of the nearest pipeline ancestor (or self), in first-start order. */
|
|
421
|
+
tone: number;
|
|
422
|
+
/** All descendants, for the collapsed "+N" count. */
|
|
423
|
+
descendants: number;
|
|
424
|
+
/** Parent rows only: merged descendant activity, drawn as the row's minimap. */
|
|
425
|
+
segments: FlowSegment[];
|
|
426
|
+
/** Direct non-agent children: the row's own thinking and tool work, drawn over its waiting extent. */
|
|
427
|
+
own: FlowSegment[];
|
|
428
|
+
/** Direct steps counted from the spans, before marks merge for display (merging depends on zoom). */
|
|
429
|
+
counts?: StepCounts;
|
|
430
|
+
/** Durations of its finished direct model calls, ascending: the card's latency. */
|
|
431
|
+
modelMs?: number[];
|
|
432
|
+
/** The span's own tokens, else the sum of its children's, as its cost rolls up. */
|
|
433
|
+
tokens?: TokenCounts;
|
|
434
|
+
/** Its cost is a floor ("≥"): its own bound, its trace's, or a family with unpriced members. */
|
|
435
|
+
costFloor?: boolean;
|
|
436
|
+
/** The span retries a failed one; its bar carries a retry glyph. */
|
|
437
|
+
retry: boolean;
|
|
438
|
+
/** The row delegates to child agents, so the gaps in its own work are waiting. */
|
|
439
|
+
hasAgents: boolean;
|
|
440
|
+
/** Recorded cost of the row and its descendants, only when every model call below it has a recorded cost. */
|
|
441
|
+
rollupCostUsd?: number;
|
|
442
|
+
/** Agent view: the family row this agent belongs to, when agents sharing a role are folded together. */
|
|
443
|
+
family?: string;
|
|
444
|
+
/** Agent view: the agent whose steps this row is, shown nested under it. */
|
|
445
|
+
stepOf?: string;
|
|
446
|
+
/** Agent view: indent level (members under a family, steps under an agent). */
|
|
447
|
+
inset?: number;
|
|
448
|
+
}
|
|
449
|
+
/** Hierarchy only; presentation owns geometry.
|
|
450
|
+
* Orphaned parents become roots; cycles are broken without dropping any span. */
|
|
451
|
+
export declare function flowWaterfallRows(trace: FlowTrace, resolutionMs?: number): FlowWaterfallRow[];
|
|
452
|
+
/** The chain of steps that gates the trace's end: from each root, descend into the latest-ending child until a leaf; the root whose
|
|
453
|
+
* chain ends last wins. Cutting latency anywhere else leaves the trace's end unchanged. */
|
|
454
|
+
export declare function criticalPathIds(rows: readonly FlowWaterfallRow[]): ReadonlySet<string>;
|
|
455
|
+
//#endregion
|
|
376
456
|
//#region src/react/flow-waterfall-row.d.ts
|
|
377
457
|
type FlowView = 'spans' | 'agents';
|
|
378
458
|
//#endregion
|
|
@@ -436,4 +516,4 @@ interface FlowWaterfallProps {
|
|
|
436
516
|
* Data remains producer-owned; playback, zoom and folding change presentation only. */
|
|
437
517
|
export declare function FlowWaterfall({ trace, live, startedAt, label, defaultCollapsed, defaultView, renderIcon, maxHeight, onSelect, markers, onTimeChange, agentFill: fillProp, selectedId, onDeselect, description, summary: showSummary, criticalPath, query: queryProp, onQueryChange, collapsed: collapsedProp, onCollapsedChange, zoom: zoomProp, onZoomChange, matchSpan }: FlowWaterfallProps): import("react").JSX.Element;
|
|
438
518
|
//#endregion
|
|
439
|
-
export type { BandKind, ChartBand, ChartMark, DotMapLabel, DotMapProps, DotMapRect, Figure, FigureAtWidth, FigureViewProps, FlowWaterfallProps, ViewWindow as FlowWaterfallWindow, GapBand, GapProps, LineSeries, MarkKind, MarkVerdict, MarkerShape, MeterSegment, PointFields, PointGlyph, Refusal, SparklineDirection, SparklineGeometry, SparklineGeometryOptions, SparklineLabelOptions, SparklinePoint, SparklineProps, SparklineValues, StackedBarBucket, StackedBarChartProps, StackedBarSegment, StackedBarSeries, TickOutcome, TimelineLane, TimelineOptions, TimelineSpan, TimelineTick, TimelineViewProps, WaterfallBarProps, WaterfallHeaderProps, WaterfallRowProps, WaterfallSpanGeometry, WaterfallTimeAxisProps, WaterfallWindow, XCategory, YScale, YTarget, YTick };
|
|
519
|
+
export type { BandKind, ChartBand, ChartMark, DotMapLabel, DotMapProps, DotMapRect, Figure, FigureAtWidth, FigureViewProps, FlowWaterfallProps, FlowWaterfallRow, ViewWindow as FlowWaterfallWindow, GapBand, GapProps, LineSeries, MarkKind, MarkVerdict, MarkerShape, MeterSegment, PointFields, PointGlyph, Refusal, SparklineDirection, SparklineGeometry, SparklineGeometryOptions, SparklineLabelOptions, SparklinePoint, SparklineProps, SparklineValues, StackedBarBucket, StackedBarChartProps, StackedBarSegment, StackedBarSeries, TickOutcome, TimelineLane, TimelineOptions, TimelineSpan, TimelineTick, TimelineViewProps, WaterfallBarProps, WaterfallHeaderProps, WaterfallRowProps, WaterfallSpanGeometry, WaterfallTimeAxisProps, WaterfallWindow, XCategory, YScale, YTarget, YTick };
|
package/dist/react/index.js
CHANGED
|
@@ -5125,4 +5125,4 @@ function FlowWaterfall({ trace, live, startedAt, label = "Trace waterfall", defa
|
|
|
5125
5125
|
});
|
|
5126
5126
|
}
|
|
5127
5127
|
//#endregion
|
|
5128
|
-
export { DEFAULT_SPARKLINE_EMPTY_LABEL, DEFAULT_SPARKLINE_HEIGHT, DEFAULT_SPARKLINE_LABEL, DEFAULT_SPARKLINE_UNAVAILABLE_LABEL, DEFAULT_SPARKLINE_WIDTH, DOT_MAP_CATEGORIES, DayBars, DotMap, Events, FigureView, FlowWaterfall, Gantt, Gap, HBars, Histogram, LIVE_SERIES, Lines, Meter, Spark, Sparkline, StackedBarChart, TimelineView, WaterfallBar, WaterfallHeader, WaterfallRow, WaterfallTimeAxis, formatCompact, formatSparklineValue, formatWaterfallDuration, sparklineGeometry, sparklineLabel, sparklinePointsAttribute, sparklineReadings, waterfallSpanGeometry, waterfallTicks };
|
|
5128
|
+
export { DEFAULT_SPARKLINE_EMPTY_LABEL, DEFAULT_SPARKLINE_HEIGHT, DEFAULT_SPARKLINE_LABEL, DEFAULT_SPARKLINE_UNAVAILABLE_LABEL, DEFAULT_SPARKLINE_WIDTH, DOT_MAP_CATEGORIES, DayBars, DotMap, Events, FigureView, FlowWaterfall, Gantt, Gap, HBars, Histogram, LIVE_SERIES, Lines, Meter, Spark, Sparkline, StackedBarChart, TimelineView, WaterfallBar, WaterfallHeader, WaterfallRow, WaterfallTimeAxis, criticalPathIds, flowWaterfallRows, formatCompact, formatSparklineValue, formatWaterfallDuration, sparklineGeometry, sparklineLabel, sparklinePointsAttribute, sparklineReadings, waterfallSpanGeometry, waterfallTicks };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/charts",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.17",
|
|
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",
|