@try-works/dsh-minimal-router 0.2.3 → 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.
- package/client/index.js +23 -11
- 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:
|
|
65300
|
-
".router-session-
|
|
65301
|
-
".router-session-
|
|
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); }",
|
|
@@ -67563,6 +67574,7 @@ var RoutingPage = Html_exports.component({
|
|
|
67563
67574
|
const contractBuckets = payload.view.contextBuckets ?? [];
|
|
67564
67575
|
const contractEscapes = payload.view.escapes ?? [];
|
|
67565
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);
|
|
67566
67578
|
const pinned = snapshot2 === null ? [] : snapshot2.models.filter((model) => model.pinned);
|
|
67567
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]);
|
|
67568
67580
|
const active2 = snapshot2?.activity.activeRequests ?? 0;
|
|
@@ -67672,19 +67684,19 @@ var RoutingPage = Html_exports.component({
|
|
|
67672
67684
|
)
|
|
67673
67685
|
),
|
|
67674
67686
|
h3.div.class("router-caps-label").children("Context bands"),
|
|
67675
|
-
...
|
|
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(
|
|
67676
67692
|
(bucket) => h3.div.class("router-panel-row").children(
|
|
67677
67693
|
h3.span.children(bucket.label),
|
|
67678
|
-
h3.span.class("router-panel-value").children(
|
|
67679
|
-
bucket.admitted === 0 ? "\u2014" : `${bucket.admitted} decisions`
|
|
67680
|
-
)
|
|
67694
|
+
h3.span.class("router-panel-value").children(`${bucket.admitted} decisions`)
|
|
67681
67695
|
)
|
|
67682
67696
|
) : bands.map(
|
|
67683
67697
|
(band2) => h3.div.class("router-panel-row").children(
|
|
67684
67698
|
h3.span.children(band2.label),
|
|
67685
|
-
h3.span.class("router-panel-value").children(
|
|
67686
|
-
band2.total === 0 ? "\u2014" : `${band2.admitted} concurrent`
|
|
67687
|
-
)
|
|
67699
|
+
h3.span.class("router-panel-value").children(`${band2.admitted} concurrent`)
|
|
67688
67700
|
)
|
|
67689
67701
|
),
|
|
67690
67702
|
h3.div.class("router-caps-label").children("Concurrency ceiling"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@try-works/dsh-minimal-router",
|
|
3
|
-
"version": "0.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",
|