@try-works/dsh-minimal-router 0.2.2 → 0.2.4

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 +31 -12
  2. package/package.json +1 -1
package/client/index.js CHANGED
@@ -16182,6 +16182,14 @@ var RouterTokensCss = `:root {
16182
16182
  --radius-round: 50%; /* status dot, slider thumb */
16183
16183
  }`;
16184
16184
  var RouterRecipesCss = `
16185
+ /* Owner review (2026-12-05): a data page reads calmer when its numbers hold
16186
+ their columns and its text is antialiased. Tabular figures wherever a value
16187
+ updates, smoothing on the page roots, and one rule for the quiet empty line.
16188
+ [class~="router-panel-value"] is the panel value written without the panel
16189
+ prefix, so the panel recipe below stays the only .router-panel selector. */
16190
+ .router-overview, .page-body, .router-rail, .router-split { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
16191
+ .router-kpi-value, .router-kpi-sub, .router-meter-value, .router-meter-status, .router-meter-tick, .router-recent-time, .router-recent-meta, .router-session-meta, .router-session-state, .router-ceiling-value, .router-ceiling-unit, .router-card-meta, [class~="router-panel-value"] { font-variant-numeric: tabular-nums; }
16192
+ .router-empty-line { padding: 6px 0; font-family: var(--font-ui); font-size: var(--text-meta); line-height: var(--leading-meta); color: var(--color-meta); text-wrap: pretty; }
16185
16193
  [data-control]:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }
16186
16194
  :where([data-control]):hover:where(:not([aria-disabled="true"]):not(:disabled):not([aria-pressed="true"]):not([aria-checked="true"]):not([aria-current="page"]):not([data-current="true"])) { background: var(--color-subtle); color: var(--color-ink); transition: background 120ms ease; }
16187
16195
  .router-interactive:hover { background: var(--color-subtle); transition: background 120ms ease; }
@@ -65260,7 +65268,7 @@ var OverviewCss = [
65260
65268
  its own box padding — 24 + 5 + 5 = 34 at 1440 (16MZ-0), 24 + 6 + 6 = 36 at
65261
65269
  390 (1734-0/17OV-0). The live page used a flat 6px margin at both widths. */
65262
65270
  ".router-statement { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 5px; padding-top: 5px; max-width: 752px; font-family: var(--font-prose); font-size: var(--text-sentence); line-height: var(--leading-sentence); letter-spacing: var(--tracking-sentence); color: var(--color-ink); }",
65263
- ".router-sentence-text { white-space: pre-wrap; }",
65271
+ ".router-sentence-text { white-space: pre-wrap; text-wrap: pretty; }",
65264
65272
  ".router-sentence-value { font-family: var(--font-mono); font-size: var(--text-meta); line-height: var(--leading-meta); letter-spacing: var(--tracking-none); }",
65265
65273
  ".router-rule { height: 1px; width: 100%; flex-shrink: 0; background: var(--color-line-rule); }",
65266
65274
  ".router-chip-anchor { display: inline-flex; align-items: center; vertical-align: baseline; min-width: 0; max-width: 100%; }",
@@ -65296,9 +65304,12 @@ var OverviewCss = [
65296
65304
  ".router-sessions-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--spacing-4); padding-bottom: var(--spacing-2); }",
65297
65305
  ".router-sessions-label { font-family: var(--font-mono); font-size: var(--text-caps); line-height: var(--leading-caps); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-meta); }",
65298
65306
  ".router-sessions-count { font-family: var(--font-mono); font-size: var(--text-meta); line-height: var(--leading-meta); color: var(--color-meta); }",
65299
- ".router-session-row { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-4); border-top: 1px solid var(--color-line-rule); padding: 7px 0; }",
65300
- ".router-session-control { display: flex; align-items: center; gap: var(--spacing-3); flex: 1 1 auto; min-width: 0; cursor: pointer; }",
65301
- ".router-session-check { width: 14px; height: 14px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: transparent; border: 1px solid var(--color-line-field); border-radius: var(--radius-chip); color: transparent; }",
65307
+ ".router-session-row { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-4); border-top: 1px solid var(--color-line-rule); padding: 10px 0; transition-property: background-color; transition-duration: 120ms; transition-timing-function: ease; }",
65308
+ ".router-session-row:hover { background: var(--color-subtle); }",
65309
+ ".router-session-row:focus-within { background: var(--color-subtle); }",
65310
+ ".router-session-control { display: flex; align-items: center; gap: var(--spacing-3); flex: 1 1 auto; min-width: 0; cursor: pointer; padding-block: 4px; }",
65311
+ ".router-session-control:focus-within .router-session-check { outline: 2px solid var(--color-ink); outline-offset: 2px; }",
65312
+ ".router-session-check { width: 15px; height: 15px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: transparent; border: 1px solid var(--color-line-field); border-radius: var(--radius-chip); color: transparent; }",
65302
65313
  '.router-session-check[aria-checked="true"] { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-bg); }',
65303
65314
  ".router-session-tick { font-family: var(--font-mono); font-size: var(--text-caps); line-height: var(--leading-caps); }",
65304
65315
  ".router-session-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-ui); font-size: var(--text-label); line-height: var(--leading-label); color: var(--color-ink); }",
@@ -66979,6 +66990,11 @@ var EvidenceContentCss = `
66979
66990
  .router-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
66980
66991
  .router-card[data-card-density="models"] { padding: var(--spacing-5); }
66981
66992
  .router-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
66993
+ /* Owner report (2026-12-05): a long model name beside the title squeezed "Ceiling"
66994
+ into "Ceilin g". The title is nowrap and never shrinks; the meta takes the
66995
+ remaining width and wraps there. */
66996
+ .router-card-head .router-card-label { flex: 0 0 auto; white-space: nowrap; }
66997
+ .router-card-head .router-card-meta { flex: 1 1 auto; min-width: 0; text-align: right; overflow-wrap: anywhere; }
66982
66998
  .router-card-label { font-family: ${SANS}; font-size: var(--text-title); line-height: var(--leading-title); font-weight: 500; letter-spacing: var(--tracking-none); text-transform: none; color: ${INK}; }
66983
66999
  .router-card-meta { font-family: ${MONO}; font-size: var(--text-meta); line-height: var(--leading-meta); letter-spacing: var(--tracking-none); text-transform: none; color: ${MUTED}; }
66984
67000
  /* Board sub-labels are caps (CONTEXT BANDS, CURRENT DECISION); card titles are T2. */
@@ -67558,6 +67574,7 @@ var RoutingPage = Html_exports.component({
67558
67574
  const contractBuckets = payload.view.contextBuckets ?? [];
67559
67575
  const contractEscapes = payload.view.escapes ?? [];
67560
67576
  const ceilingSlots = payload.view.ceiling?.slots ?? null;
67577
+ const bandsEmpty = contractBuckets.length > 0 ? contractBuckets.every((bucket) => bucket.admitted === 0) : bands.every((band2) => band2.total === 0);
67561
67578
  const pinned = snapshot2 === null ? [] : snapshot2.models.filter((model) => model.pinned);
67562
67579
  const escapes = contractEscapes.length === 0 ? counts.map((entry) => [GATE_COPY[entry.gate]?.name ?? entry.gate, entry.count]) : contractEscapes.map((entry) => [GATE_COPY[entry.gate]?.name ?? entry.gate, entry.count]);
67563
67580
  const active2 = snapshot2?.activity.activeRequests ?? 0;
@@ -67667,25 +67684,27 @@ var RoutingPage = Html_exports.component({
67667
67684
  )
67668
67685
  ),
67669
67686
  h3.div.class("router-caps-label").children("Context bands"),
67670
- ...contractBuckets.length > 0 ? contractBuckets.map(
67687
+ ...bandsEmpty ? [
67688
+ h3.div.class("router-empty-line").children(
67689
+ "No decisions at any context size yet \u2014 the bands fill as requests run."
67690
+ )
67691
+ ] : contractBuckets.length > 0 ? contractBuckets.map(
67671
67692
  (bucket) => h3.div.class("router-panel-row").children(
67672
67693
  h3.span.children(bucket.label),
67673
- h3.span.class("router-panel-value").children(
67674
- bucket.admitted === 0 ? "\u2014" : `${bucket.admitted} decisions`
67675
- )
67694
+ h3.span.class("router-panel-value").children(`${bucket.admitted} decisions`)
67676
67695
  )
67677
67696
  ) : bands.map(
67678
67697
  (band2) => h3.div.class("router-panel-row").children(
67679
67698
  h3.span.children(band2.label),
67680
- h3.span.class("router-panel-value").children(
67681
- band2.total === 0 ? "\u2014" : `${band2.admitted} concurrent`
67682
- )
67699
+ h3.span.class("router-panel-value").children(`${band2.admitted} concurrent`)
67683
67700
  )
67684
67701
  ),
67685
67702
  h3.div.class("router-caps-label").children("Concurrency ceiling"),
67686
67703
  h3.div.class("router-ceiling").children(
67687
67704
  h3.span.class("router-ceiling-value").children(snapshot2 === null ? "\u2014" : String(active2)),
67688
- h3.span.class("router-ceiling-unit").children(snapshot2 === null ? "active" : "active \xB7 limit \u2014")
67705
+ h3.span.class("router-ceiling-unit").children(
67706
+ snapshot2 === null ? "active" : `active \xB7 limit ${Number.isFinite(snapshot2.engineMax) ? String(snapshot2.engineMax) : "\u2014"}`
67707
+ )
67689
67708
  ),
67690
67709
  Meter(h3, {
67691
67710
  key: "ceiling",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@try-works/dsh-minimal-router",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
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",