@try-works/dsh-minimal-router 0.2.11 → 0.2.13

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.
Files changed (2) hide show
  1. package/client/index.js +27 -6
  2. package/package.json +1 -1
package/client/index.js CHANGED
@@ -66593,6 +66593,17 @@ var ShellCss = `
66593
66593
  fold when it is shorter (F-34-21). One rule for the content column: display,
66594
66594
  overflow and the 60vh floor live together (F-34-08). */
66595
66595
  [data-router-shell] [data-router-content] { display: flex !important; flex-direction: column; flex: 1 1 auto; min-height: 60vh; overflow-y: auto; overflow-x: hidden; }
66596
+ /* Run 40 (F-40-21, Owner): the window chips sit beside the page frame in the tab
66597
+ wrapper, so they must use the frame's container column - same max width, same
66598
+ centred gutter - or they hang at the viewport edge while the page is centred. */
66599
+ [data-router-shell] .router-range-row {
66600
+ width: 100%;
66601
+ max-width: var(--container-page);
66602
+ margin: 0 auto;
66603
+ padding-block: var(--spacing-2) 0;
66604
+ padding-inline: var(--container-gutter);
66605
+ box-sizing: border-box;
66606
+ }
66596
66607
  /* A mounted tab is a flex column too, so the page frame can fill it. These are
66597
66608
  NOT !important: a hidden tab keeps its inline display:none. */
66598
66609
  [data-router-shell] [data-router-tab],
@@ -66655,6 +66666,7 @@ var ShellCss = `
66655
66666
  /* The build-mismatch banner (R-30-02): one class, not an inline style string. */
66656
66667
  [data-router-shell] .router-build-mismatch { display: flex; align-items: center; margin: 12px 32px; padding: 10px 14px; border: 1px solid var(--color-danger); border-radius: var(--radius-input); background: var(--color-subtle); color: var(--color-ink); font-family: var(--font-ui); font-size: var(--text-meta); line-height: var(--leading-meta); }
66657
66668
  @media (max-width: 760px) {
66669
+ [data-router-shell] .router-range-row { padding-inline: var(--container-gutter-sm); }
66658
66670
  /* DEC-34-05 re-measured on the board's composition: 70px of tab rows (12 top
66659
66671
  padding + 28 + 2 gap + 28) + the 44px status row + the 1px rule = 115px. */
66660
66672
  [data-router-shell] { --shell-header: 115px; }
@@ -66835,8 +66847,8 @@ var TELEMETRY_CSS = [
66835
66847
  ".router-range-row { display: flex; flex-direction: row; align-items: center; gap: var(--spacing-2); padding-block: var(--spacing-2); }",
66836
66848
  '.router-range-chip[aria-pressed="true"] { background: var(--color-ink); color: var(--color-bg); border-color: var(--color-ink); }',
66837
66849
  ".router-range-chip { font-family: var(--font-mono); font-size: var(--text-caption); padding-inline: var(--spacing-3); }",
66838
- ...Array.from({ length: 21 }, (_, i) => ".router-tl-dot.w" + i + " { left: " + i * 5 + "%; }"),
66839
- ...Array.from({ length: 21 }, (_, i) => ".router-tl-dot.scatter-y-" + i + " { bottom: " + i * 5 + "%; }")
66850
+ ...Array.from({ length: 41 }, (_, i) => ".router-tl-dot.w" + i + " { left: " + i * 2.5 + "%; }"),
66851
+ ...Array.from({ length: 41 }, (_, i) => ".router-tl-dot.scatter-y-" + i + " { bottom: " + i * 2.5 + "%; }")
66840
66852
  ].join("\n");
66841
66853
  var EvidenceContentCss = `
66842
66854
  ${TELEMETRY_CSS}
@@ -68406,7 +68418,9 @@ var speedStripLine = (h3, strip) => {
68406
68418
  if (strip.available !== true) return "speed \xB7 not reported (" + (strip.reason ?? "no series") + ")";
68407
68419
  return "speed \xB7 p50 " + (strip.p50 ?? "\u2014") + " tps \xB7 floor " + strip.floor + " \xB7 " + (strip.belowFloor ?? 0) + " of " + strip.total + " below floor \xB7 " + strip.range;
68408
68420
  };
68421
+ var stepIndex = (pct) => Math.max(0, Math.min(40, Math.round(pct / 2.5)));
68409
68422
  var step3 = (pct) => "w" + Math.max(0, Math.min(20, Math.round(pct / 5)));
68423
+ var scatterDotClass = (xPct, yPct) => "router-tl-dot w" + stepIndex(xPct) + " scatter-y-" + stepIndex(yPct);
68410
68424
  var TelemetryPageSchema = Schema_exports.Struct({
68411
68425
  /** The window the reader selected; when it differs from view.range, data is in flight. */
68412
68426
  selectedRange: Schema_exports.optional(Schema_exports.Literals(["24h", "7d", "all"])),
@@ -68475,9 +68489,17 @@ var TelemetryPage = Html_exports.component({
68475
68489
  // property path in this snapshot), so the dots stay until the bridge
68476
68490
  // is proven. A half-wired plot would be worse than the fallback.
68477
68491
  h3.div.class("router-tl-scatter").children(
68478
- ...view2.scatter.points.map(
68479
- (point) => h3.div.class("router-tl-dot " + step3(point.promptTokens / (view2.scatter.xMax ?? 131072) * 100) + " scatter-y-" + step3(point.tps / 260 * 100)).attr("data-below-floor", point.tps < (view2.scatter.floor ?? 30) ? "true" : void 0)
68480
- )
68492
+ ...(() => {
68493
+ const yTop = Math.max(60, Math.ceil(Math.max(...view2.scatter.points.map((p) => p.tps)) / 20) * 20);
68494
+ return view2.scatter.points.map(
68495
+ (point) => h3.div.class(
68496
+ scatterDotClass(
68497
+ point.promptTokens / (view2.scatter.xMax ?? 131072) * 100,
68498
+ point.tps / yTop * 100
68499
+ )
68500
+ ).attr("data-below-floor", point.tps < (view2.scatter.floor ?? 30) ? "true" : void 0)
68501
+ );
68502
+ })()
68481
68503
  ),
68482
68504
  h3.div.class("router-tl-foot").children(view2.scatter.n + " requests \xB7 " + view2.scatter.plotted + " plotted \xB7 floor " + (view2.scatter.floor ?? 30) + " tps")
68483
68505
  ] : [unavailable(h3, view2.scatter.reason)]),
@@ -69664,7 +69686,6 @@ var RouterPage = () => {
69664
69686
  row.style.flexDirection = "row";
69665
69687
  row.style.alignItems = "center";
69666
69688
  row.style.gap = "6px";
69667
- row.style.padding = "8px 0 4px";
69668
69689
  for (const entry of TELEMETRY_RANGES) {
69669
69690
  const button = document.createElement("button");
69670
69691
  button.type = "button";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@try-works/dsh-minimal-router",
3
- "version": "0.2.11",
3
+ "version": "0.2.13",
4
4
  "description": "DSH local router plugin: per-session auto-routing between a local engine and remote models, evidence pages, and a plugin-owned engine provider.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",