@try-works/dsh-minimal-router 0.2.3 → 0.2.5
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 +44 -24
- 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%; }",
|
|
@@ -65292,13 +65300,16 @@ var OverviewCss = [
|
|
|
65292
65300
|
".router-meter-tick { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--color-bg); }",
|
|
65293
65301
|
/* F-37-51: the session list reads like the recent-calls list - one row per
|
|
65294
65302
|
session, the kit checkbox first, the id reduced to its tail. */
|
|
65295
|
-
".router-sessions { display: flex; flex-direction: column; gap: 0;
|
|
65303
|
+
".router-sessions { display: flex; flex-direction: column; gap: 0; width: 100%; }",
|
|
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); }",
|
|
@@ -65826,18 +65837,26 @@ var Overview = OverviewDef.make({
|
|
|
65826
65837
|
],
|
|
65827
65838
|
Separator(h3).class("router-rule"),
|
|
65828
65839
|
meter,
|
|
65829
|
-
|
|
65830
|
-
|
|
65831
|
-
|
|
65832
|
-
|
|
65833
|
-
|
|
65834
|
-
|
|
65835
|
-
h3.span.class("router-
|
|
65836
|
-
|
|
65837
|
-
|
|
65838
|
-
|
|
65839
|
-
h3.
|
|
65840
|
-
|
|
65840
|
+
// Owner review (2026-12-05): the session list and the recent-calls list
|
|
65841
|
+
// are two tables. Each is its own raised panel with its own heading, so
|
|
65842
|
+
// they can never read as one continuous list.
|
|
65843
|
+
h3.div.class("router-card router-panel").attr("data-surface", "raised").attr("data-table", "sessions").children(sessionsCard),
|
|
65844
|
+
h3.div.class("router-card router-panel").attr("data-surface", "raised").attr("data-table", "recent").children(
|
|
65845
|
+
h3.div.class("router-card-head").children(
|
|
65846
|
+
h3.span.class("router-caps-label").children("Recent calls"),
|
|
65847
|
+
h3.span.class("router-card-meta").children(recent.length === 0 ? "none" : String(recent.length))
|
|
65848
|
+
),
|
|
65849
|
+
...recent.length === 0 ? [
|
|
65850
|
+
h3.div.class("router-recent-empty").children("No calls yet")
|
|
65851
|
+
] : recent.map(
|
|
65852
|
+
(row) => h3.div.class("router-recent-row").children(
|
|
65853
|
+
h3.span.class("router-recent-time").children(
|
|
65854
|
+
row.at.length >= 16 ? row.at.slice(11, 16) : row.at
|
|
65855
|
+
),
|
|
65856
|
+
h3.span.class("router-recent-id").children(row.requestId),
|
|
65857
|
+
h3.span.class("router-recent-meta").children(
|
|
65858
|
+
row.decision + " \xB7 " + row.model + (row.gate === null ? "" : " \xB7 " + row.gate)
|
|
65859
|
+
)
|
|
65841
65860
|
)
|
|
65842
65861
|
)
|
|
65843
65862
|
)
|
|
@@ -67563,6 +67582,7 @@ var RoutingPage = Html_exports.component({
|
|
|
67563
67582
|
const contractBuckets = payload.view.contextBuckets ?? [];
|
|
67564
67583
|
const contractEscapes = payload.view.escapes ?? [];
|
|
67565
67584
|
const ceilingSlots = payload.view.ceiling?.slots ?? null;
|
|
67585
|
+
const bandsEmpty = contractBuckets.length > 0 ? contractBuckets.every((bucket) => bucket.admitted === 0) : bands.every((band2) => band2.total === 0);
|
|
67566
67586
|
const pinned = snapshot2 === null ? [] : snapshot2.models.filter((model) => model.pinned);
|
|
67567
67587
|
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
67588
|
const active2 = snapshot2?.activity.activeRequests ?? 0;
|
|
@@ -67672,19 +67692,19 @@ var RoutingPage = Html_exports.component({
|
|
|
67672
67692
|
)
|
|
67673
67693
|
),
|
|
67674
67694
|
h3.div.class("router-caps-label").children("Context bands"),
|
|
67675
|
-
...
|
|
67695
|
+
...bandsEmpty ? [
|
|
67696
|
+
h3.div.class("router-empty-line").children(
|
|
67697
|
+
"No decisions at any context size yet \u2014 the bands fill as requests run."
|
|
67698
|
+
)
|
|
67699
|
+
] : contractBuckets.length > 0 ? contractBuckets.map(
|
|
67676
67700
|
(bucket) => h3.div.class("router-panel-row").children(
|
|
67677
67701
|
h3.span.children(bucket.label),
|
|
67678
|
-
h3.span.class("router-panel-value").children(
|
|
67679
|
-
bucket.admitted === 0 ? "\u2014" : `${bucket.admitted} decisions`
|
|
67680
|
-
)
|
|
67702
|
+
h3.span.class("router-panel-value").children(`${bucket.admitted} decisions`)
|
|
67681
67703
|
)
|
|
67682
67704
|
) : bands.map(
|
|
67683
67705
|
(band2) => h3.div.class("router-panel-row").children(
|
|
67684
67706
|
h3.span.children(band2.label),
|
|
67685
|
-
h3.span.class("router-panel-value").children(
|
|
67686
|
-
band2.total === 0 ? "\u2014" : `${band2.admitted} concurrent`
|
|
67687
|
-
)
|
|
67707
|
+
h3.span.class("router-panel-value").children(`${band2.admitted} concurrent`)
|
|
67688
67708
|
)
|
|
67689
67709
|
),
|
|
67690
67710
|
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.5",
|
|
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",
|