@simplexai/localmodels-linux-x64 0.1.0-dev.36 → 0.1.0-dev.38

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 (134) hide show
  1. package/bootstrap.identity +1 -1
  2. package/bootstrap.sha256 +132 -110
  3. package/kit.py +1 -0
  4. package/modules/localmodels/__init__.py +1 -1
  5. package/modules/localmodels/__main__.py +9 -3
  6. package/modules/localmodels/bifrost_checks.py +9 -6
  7. package/modules/localmodels/bifrost_config.py +203 -0
  8. package/modules/localmodels/bifrost_datasheet.py +12 -2
  9. package/modules/localmodels/budget.py +13 -2
  10. package/modules/localmodels/catalog.json +137 -2
  11. package/modules/localmodels/catalog.py +70 -321
  12. package/modules/localmodels/catalog_add.py +2 -8
  13. package/modules/localmodels/catalog_recipes.py +352 -0
  14. package/modules/localmodels/cli_parser.py +4 -1
  15. package/modules/localmodels/console.py +5 -4
  16. package/modules/localmodels/contracts.py +13 -3
  17. package/modules/localmodels/debug_cli.py +158 -0
  18. package/modules/localmodels/debug_mode.py +727 -0
  19. package/modules/localmodels/debug_stub_server.py +192 -0
  20. package/modules/localmodels/decode_calibration.json +1 -1
  21. package/modules/localmodels/decode_calibration.py +34 -17
  22. package/modules/localmodels/gateway.py +21 -155
  23. package/modules/localmodels/gateway_accept.py +201 -0
  24. package/modules/localmodels/gateway_bifrost.py +30 -193
  25. package/modules/localmodels/gateway_cli.py +15 -6
  26. package/modules/localmodels/gateway_foundations.py +2 -4
  27. package/modules/localmodels/gateway_probe.py +0 -1
  28. package/modules/localmodels/gateway_server.py +2 -3
  29. package/modules/localmodels/gpu_specs.py +12 -0
  30. package/modules/localmodels/guard.py +2 -7
  31. package/modules/localmodels/harness.py +16 -129
  32. package/modules/localmodels/harness_cleanup.py +135 -0
  33. package/modules/localmodels/harness_gateway.py +16 -14
  34. package/modules/localmodels/harness_probe.py +12 -4
  35. package/modules/localmodels/hosts.py +25 -2
  36. package/modules/localmodels/http_local.py +59 -0
  37. package/modules/localmodels/install.py +23 -8
  38. package/modules/localmodels/library_gateway.py +20 -9
  39. package/modules/localmodels/library_jobs.py +125 -28
  40. package/modules/localmodels/library_model.py +10 -0
  41. package/modules/localmodels/library_pricing.py +29 -22
  42. package/modules/localmodels/library_serve.py +17 -1
  43. package/modules/localmodels/library_state.py +15 -2
  44. package/modules/localmodels/library_status.py +30 -0
  45. package/modules/localmodels/llm_rank.py +185 -39
  46. package/modules/localmodels/probe.py +108 -174
  47. package/modules/localmodels/process_identity.py +120 -154
  48. package/modules/localmodels/process_windows.py +86 -0
  49. package/modules/localmodels/recommend.py +6 -3
  50. package/modules/localmodels/recommend_cli.py +14 -6
  51. package/modules/localmodels/remote_ops.py +65 -0
  52. package/modules/localmodels/remote_ops_service.py +14 -2
  53. package/modules/localmodels/runtime_args.py +10 -3
  54. package/modules/localmodels/runtime_auth.py +5 -9
  55. package/modules/localmodels/runtime_cli.py +128 -129
  56. package/modules/localmodels/runtime_discovery.py +84 -0
  57. package/modules/localmodels/runtime_install.py +101 -0
  58. package/modules/localmodels/runtime_releases.py +302 -0
  59. package/modules/localmodels/search_server.py +5 -1
  60. package/modules/localmodels/service_stop.py +8 -108
  61. package/modules/localmodels/service_upgrade.py +394 -63
  62. package/modules/localmodels/services_cli.py +24 -14
  63. package/modules/localmodels/setup_inspection.py +97 -9
  64. package/modules/localmodels/setup_text.py +7 -0
  65. package/modules/localmodels/sizecalc.py +0 -1
  66. package/modules/localmodels/stack.py +45 -235
  67. package/modules/localmodels/stack_arena.py +732 -0
  68. package/modules/localmodels/stack_args.py +21 -12
  69. package/modules/localmodels/stack_auto.py +384 -3
  70. package/modules/localmodels/stack_aux_gpu.py +4 -3
  71. package/modules/localmodels/stack_capacity.py +138 -0
  72. package/modules/localmodels/stack_cleanup.py +9 -4
  73. package/modules/localmodels/stack_cli.py +288 -0
  74. package/modules/localmodels/stack_compose.py +63 -30
  75. package/modules/localmodels/stack_console.py +9 -6
  76. package/modules/localmodels/stack_hardware.py +95 -265
  77. package/modules/localmodels/stack_hardware_text.py +263 -0
  78. package/modules/localmodels/stack_journal.py +3 -9
  79. package/modules/localmodels/stack_ledger.py +48 -18
  80. package/modules/localmodels/stack_lifecycle.py +33 -312
  81. package/modules/localmodels/stack_llm_ram.py +16 -6
  82. package/modules/localmodels/stack_mcp.py +729 -0
  83. package/modules/localmodels/stack_memory.py +0 -2
  84. package/modules/localmodels/stack_picks.py +62 -15
  85. package/modules/localmodels/stack_plan.py +19 -1
  86. package/modules/localmodels/stack_preflight.py +11 -19
  87. package/modules/localmodels/stack_progress.py +9 -1
  88. package/modules/localmodels/stack_remove.py +373 -0
  89. package/modules/localmodels/stack_route.py +101 -17
  90. package/modules/localmodels/stack_run.py +29 -0
  91. package/modules/localmodels/stack_suite.py +21 -10
  92. package/modules/localmodels/stack_summary.py +14 -0
  93. package/modules/localmodels/stack_try.py +238 -24
  94. package/modules/localmodels/stack_try_client.py +53 -15
  95. package/modules/localmodels/stack_try_docs.py +2 -2
  96. package/modules/localmodels/stack_view.py +24 -171
  97. package/modules/localmodels/stack_view_access.py +114 -1
  98. package/modules/localmodels/stack_view_agent.py +3 -13
  99. package/modules/localmodels/stack_view_hub.py +9 -10
  100. package/modules/localmodels/stack_view_llm.py +1 -1
  101. package/modules/localmodels/stack_view_sandbox.py +2 -2
  102. package/modules/localmodels/stack_view_schema.py +183 -0
  103. package/modules/localmodels/stack_view_serve.py +7 -1
  104. package/modules/localmodels/stack_view_service.py +1 -2
  105. package/modules/localmodels/stack_view_text.py +13 -9
  106. package/modules/localmodels/stack_warm.py +48 -4
  107. package/modules/localmodels/stack_warm_store.py +517 -0
  108. package/modules/localmodels/tools.json +32 -18
  109. package/modules/localmodels/transport.py +38 -13
  110. package/modules/localmodels/tui.py +28 -4
  111. package/modules/localmodels/tui_dialogs.py +136 -0
  112. package/modules/localmodels/tui_modals.py +279 -0
  113. package/modules/localmodels/tui_screen.py +113 -154
  114. package/modules/localmodels/tui_views.py +134 -203
  115. package/modules/localmodels/web/index.html +510 -101
  116. package/modules/localmodels/web/sizecalc/app.js +363 -10
  117. package/modules/localmodels/web/sizecalc/page.html +27 -3
  118. package/modules/localmodels/web/view/fleet.html +11 -2
  119. package/modules/localmodels/web/view/fleet.js +191 -17
  120. package/modules/localmodels/web/view/i18n.js +3 -2
  121. package/modules/localmodels/web/view/index.html +1 -1
  122. package/modules/localmodels/web/view/nav.js +22 -3
  123. package/modules/localmodels/web/view/view.css +63 -18
  124. package/modules/localmodels/web/view/view.js +169 -32
  125. package/modules/localmodels/windows_job.py +69 -0
  126. package/modules/{simplex_localmodels-0.1.0.dev36.dist-info → simplex_localmodels-0.1.0.dev38.dist-info}/METADATA +1 -1
  127. package/modules/{simplex_localmodels-0.1.0.dev36.dist-info → simplex_localmodels-0.1.0.dev38.dist-info}/RECORD +128 -106
  128. package/package.json +1 -1
  129. package/tool.json +1 -1
  130. package/modules/localmodels/engines-strata-0.1.49.1.json +0 -31
  131. /package/modules/{simplex_localmodels-0.1.0.dev36.dist-info → simplex_localmodels-0.1.0.dev38.dist-info}/WHEEL +0 -0
  132. /package/modules/{simplex_localmodels-0.1.0.dev36.dist-info → simplex_localmodels-0.1.0.dev38.dist-info}/entry_points.txt +0 -0
  133. /package/modules/{simplex_localmodels-0.1.0.dev36.dist-info → simplex_localmodels-0.1.0.dev38.dist-info}/licenses/NOTICE +0 -0
  134. /package/modules/{simplex_localmodels-0.1.0.dev36.dist-info → simplex_localmodels-0.1.0.dev38.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
@@ -6,8 +6,11 @@
6
6
 
7
7
  const FLEET = (function () {
8
8
  const GIB = 1024 ** 3;
9
+ const SVG_TAGS = new Set(["svg", "polyline", "path", "circle", "rect", "line", "g"]);
9
10
  const el = (tag, props, ...kids) => {
10
- const node = document.createElement(tag);
11
+ const node = SVG_TAGS.has(tag)
12
+ ? document.createElementNS("http://www.w3.org/2000/svg", tag)
13
+ : document.createElement(tag);
11
14
  for (const [k, v] of Object.entries(props || {})) {
12
15
  if (v === undefined || v === null || v === false) continue;
13
16
  if (k === "style" && typeof v === "object") for (const [p, x] of Object.entries(v)) node.style.setProperty(p, x);
@@ -64,25 +67,84 @@ const FLEET = (function () {
64
67
  el("span", { class: "fl-num" }, `${gb(g.used_bytes)} / ${gb(g.total_bytes)} GB`));
65
68
  }
66
69
 
67
- function row(c) {
70
+ function hasProblem(c) {
71
+ return Boolean(
72
+ c && (
73
+ c.state === "stale" ||
74
+ (Array.isArray(c.problems) && c.problems.length > 0) ||
75
+ (Array.isArray(c.down) && c.down.length > 0) ||
76
+ Number(c.alerts) > 0 ||
77
+ Number(c.failed) > 0
78
+ )
79
+ );
80
+ }
81
+
82
+ function sortAndFilter(rows, query, filter) {
83
+ const f = String(filter || "all").toLowerCase();
84
+ const q = String(query || "").trim().toLowerCase();
85
+ const rank = (c) => (hasProblem(c) ? 0 : c && c.state === "live" ? 1 : 2);
86
+ return (rows || [])
87
+ .map((c, idx) => ({ c, idx }))
88
+ .filter(({ c }) => {
89
+ if (!c) return false;
90
+ if (f === "attention" && !hasProblem(c)) return false;
91
+ if (f === "live" && c.state !== "live") return false;
92
+ if (f === "waiting" && c.state !== "waiting") return false;
93
+ if (!q) return true;
94
+ const llmText = typeof c.llm === "string" ? c.llm : c.llm && (c.llm.model || c.llm.id || "");
95
+ const gpus = (c.gpus || []).map((g) => (g && g.name) || "").join(" ");
96
+ const hay = `${c.name || ""} ${c.hostname || ""} ${llmText} ${c.state || ""} ${gpus}`.toLowerCase();
97
+ return hay.includes(q);
98
+ })
99
+ .sort((a, b) => rank(a.c) - rank(b.c) || a.idx - b.idx)
100
+ .map(({ c }) => c);
101
+ }
102
+
103
+ function sparkPoints(values, w = 56, h = 16) {
104
+ const nums = (Array.isArray(values) ? values : []).map(Number).filter(Number.isFinite);
105
+ if (nums.length < 2) return "";
106
+ const width = Number(w) > 0 ? Number(w) : 56;
107
+ const height = Number(h) > 0 ? Number(h) : 16;
108
+ const min = Math.min(...nums);
109
+ const max = Math.max(...nums);
110
+ const pad = Math.min(1.5, height / 4);
111
+ const spanY = Math.max(1, height - pad * 2);
112
+ return nums.map((v, i) => {
113
+ const x = (i / (nums.length - 1)) * width;
114
+ const y = max === min ? height / 2 : pad + (1 - (v - min) / (max - min)) * spanY;
115
+ return `${x.toFixed(1)},${y.toFixed(1)}`;
116
+ }).join(" ");
117
+ }
118
+
119
+ function row(c, samples) {
120
+ const href = c.state === "waiting" ? null : `h/${encodeURIComponent(c.name)}/`;
121
+ const pts = c.state === "waiting" ? "" : sparkPoints(samples || c.spark || [], 56, 16);
122
+ const spark = pts
123
+ ? el("svg", { class: "fl-spark", viewBox: "0 0 56 16", "aria-hidden": "true" },
124
+ el("polyline", { fill: "none", stroke: "currentColor", "stroke-width": "1.5", points: pts }))
125
+ : null;
68
126
  const head = el("div", { class: "fl-head" },
69
127
  el("span", { class: `fl-dot is-${c.state}`, title: STATE[c.state] || c.state }),
70
- c.state === "waiting" ? el("b", {}, c.name) : el("a", { href: `h/${encodeURIComponent(c.name)}/` }, el("b", {}, c.name)),
128
+ c.state === "waiting" ? el("b", {}, c.name) : el("a", { href }, el("b", {}, c.name)),
71
129
  el("span", { class: "fl-sub" }, c.state === "waiting" ? STATE.waiting : `${c.hostname} · ${c.tier}`),
72
130
  el("span", { class: "grow" }),
131
+ spark,
73
132
  el("span", { class: `fl-age is-${c.state}` }, c.state === "waiting" ? "" : `${STATE[c.state]} · ${ago(c.age_s)}`));
74
- if (c.state === "waiting") return el("div", { class: "fl-row is-waiting" }, head);
75
- const llm = c.llm || {};
133
+ if (c.state === "waiting") return el("div", { class: "fl-row is-waiting", "data-name": c.name }, head);
134
+ const llm = typeof c.llm === "string" ? { model: c.llm, state: c.state } : (c.llm || {});
135
+ const down = Array.isArray(c.down) ? c.down : [];
136
+ const gpus = Array.isArray(c.gpus) ? c.gpus : [];
137
+ const ram = c.ram || {};
76
138
  const decode = llm.decode_tok_s == null ? "decode —" : `decode ${llm.decode_tok_s} tok/s`;
77
139
  const stack = c.source === "empty" ? "no stack applied" : c.source === "demo" ? "demo data" : `${c.components} component${c.components === 1 ? "" : "s"}`;
78
140
  const facts = el("div", { class: "fl-facts" },
79
- el("span", {}, llm.model ? `${llm.model} · ${llm.state}` : "no LLM"),
141
+ el("span", {}, llm.model ? `${llm.model} · ${llm.state || c.state}` : "no LLM"),
80
142
  el("span", {}, decode),
81
143
  el("span", {}, stack),
82
144
  el("span", { class: c.failed ? "bad" : "" }, `${c.calls} recent calls${c.failed ? ` (${c.failed} failed)` : ""}`),
83
- c.down.length ? el("span", { class: "bad" }, `down: ${c.down.join(", ")}`) : null,
84
- el("span", {}, `RAM ${gb(c.ram.total_bytes - c.ram.available_bytes)} / ${gb(c.ram.total_bytes)} GB`));
85
- return el("div", { class: `fl-row is-${c.state}` }, head, facts, el("div", { class: "fl-gpus" }, ...c.gpus.map(cardBar)));
145
+ down.length ? el("span", { class: "bad" }, `down: ${down.join(", ")}`) : null,
146
+ ram.total_bytes != null ? el("span", {}, `RAM ${gb(ram.total_bytes - (ram.available_bytes || 0))} / ${gb(ram.total_bytes)} GB`) : null);
147
+ return el("div", { class: `fl-row is-${c.state}`, "data-name": c.name, "data-href": href }, head, facts, el("div", { class: "fl-gpus" }, ...gpus.map(cardBar)));
86
148
  }
87
149
 
88
150
  // Stacks that share a card (several stacks on one GPU) each report it; the totals count it once.
@@ -98,16 +160,128 @@ const FLEET = (function () {
98
160
  function overview() {
99
161
  const box = document.getElementById("fleet-rows");
100
162
  if (!box) return;
163
+ const sumEl = document.getElementById("fleet-sum");
164
+ const qInput = document.getElementById("fleet-q");
165
+ const filterBtns = [...document.querySelectorAll(".fl-filter")];
166
+ const historyMap = new Map();
167
+ let query = qInput ? qInput.value : "";
168
+ let filter = "all";
169
+ let lastFound = null;
170
+ let lastSig = null;
171
+ let lastSum = null;
172
+
173
+ const recordHistory = (found) => {
174
+ const rows = Array.isArray(found && found.computers) ? found.computers : [];
175
+ const seen = new Set();
176
+ for (const c of rows) {
177
+ if (!c || !c.name) continue;
178
+ seen.add(c.name);
179
+ if (c.state === "waiting") continue;
180
+ const prev = historyMap.get(c.name) || [];
181
+ const base = Array.isArray(c.spark) && c.spark.length
182
+ ? c.spark.map(Number).filter(Number.isFinite)
183
+ : prev;
184
+ const next = c.calls != null || !base.length ? [...base, Number(c.calls || 0)] : base;
185
+ historyMap.set(c.name, next.slice(-16));
186
+ }
187
+ for (const name of historyMap.keys()) if (!seen.has(name)) historyMap.delete(name);
188
+ };
189
+
190
+ const setSum = (text) => {
191
+ if (sumEl && lastSum !== text) {
192
+ lastSum = text;
193
+ sumEl.textContent = text;
194
+ }
195
+ };
196
+
101
197
  const draw = (found) => {
102
- if (!found) return box.replaceChildren(el("div", { class: "empty" }, "Cannot reach the hub."));
103
- const rows = found.computers;
198
+ lastFound = found;
199
+ if (!found) {
200
+ if (lastSig === "offline") return;
201
+ lastSig = "offline";
202
+ box.replaceChildren(el("div", { class: "empty" }, "Cannot reach the hub."));
203
+ return;
204
+ }
205
+ const rows = Array.isArray(found.computers) ? found.computers : [];
104
206
  const sum = totals(rows);
105
- document.getElementById("fleet-sum").textContent =
106
- `${sum.live} of ${sum.computers} reporting · ${sum.cards} GPUs · ${gb(sum.used)} / ${gb(sum.total)} GB VRAM in use`;
107
- if (!rows.length) return box.replaceChildren(el("div", { class: "empty" }, "No computers yet. On the hub: stack view-hub add NAME, then run the printed line on that computer."));
108
- box.replaceChildren(...rows.map(row));
207
+ setSum(`${sum.live} of ${sum.computers} reporting · ${sum.cards} GPUs · ${gb(sum.used)} / ${gb(sum.total)} GB VRAM in use`);
208
+ const shown = sortAndFilter(rows, query, filter);
209
+ const sig = JSON.stringify({
210
+ total: rows.length,
211
+ query,
212
+ filter,
213
+ rows: shown.map((c) => ({
214
+ name: c.name,
215
+ state: c.state,
216
+ hostname: c.hostname,
217
+ tier: c.tier,
218
+ age: c.state === "waiting" ? "" : ago(c.age_s),
219
+ llm: c.llm,
220
+ source: c.source,
221
+ components: c.components,
222
+ calls: c.calls,
223
+ failed: c.failed,
224
+ down: c.down,
225
+ problems: c.problems,
226
+ ram: c.ram,
227
+ spark: sparkPoints(historyMap.get(c.name) || c.spark || [], 56, 16),
228
+ gpus: (c.gpus || []).map((g) => ({ index: g.index, name: g.name, used_bytes: g.used_bytes, total_bytes: g.total_bytes })),
229
+ })),
230
+ });
231
+ if (sig === lastSig) return;
232
+ lastSig = sig;
233
+ const focused = box.contains(document.activeElement)
234
+ ? document.activeElement.closest(".fl-row")?.getAttribute("data-name")
235
+ : null;
236
+ if (!rows.length) {
237
+ box.replaceChildren(el("div", { class: "empty" }, "No computers yet. On the hub: stack view-hub add NAME, then run the printed line on that computer."));
238
+ return;
239
+ }
240
+ if (!shown.length) {
241
+ box.replaceChildren(el("div", { class: "empty" }, "No computers match this filter."));
242
+ return;
243
+ }
244
+ box.replaceChildren(...shown.map((c) => row(c, historyMap.get(c.name))));
245
+ if (focused) {
246
+ const match = [...box.querySelectorAll(".fl-row")].find((n) => n.getAttribute("data-name") === focused);
247
+ match?.querySelector("a")?.focus({ preventScroll: true });
248
+ }
109
249
  };
110
- const tick = () => fetchFleet().then(draw);
250
+
251
+ box.addEventListener("click", (e) => {
252
+ if (e.target && e.target.closest && e.target.closest("a, button, input")) return;
253
+ const sel = typeof getSelection === "function" ? getSelection() : null;
254
+ if (sel && sel.toString()) return;
255
+ const targetRow = e.target && e.target.closest ? e.target.closest(".fl-row[data-href]") : null;
256
+ if (!targetRow) return;
257
+ const href = targetRow.getAttribute("data-href");
258
+ if (!href) return;
259
+ if (e.ctrlKey || e.metaKey) {
260
+ if (typeof window !== "undefined" && window.open) window.open(href, "_blank", "noopener");
261
+ } else if (typeof location !== "undefined" && location) {
262
+ if (location.assign) location.assign(href);
263
+ else location.href = href;
264
+ }
265
+ });
266
+
267
+ if (qInput) {
268
+ qInput.addEventListener("input", () => {
269
+ query = qInput.value;
270
+ if (lastFound !== null) draw(lastFound);
271
+ });
272
+ }
273
+ for (const btn of filterBtns) {
274
+ btn.addEventListener("click", () => {
275
+ filter = btn.getAttribute("data-filter") || "all";
276
+ for (const b of filterBtns) b.setAttribute("aria-pressed", String(b === btn));
277
+ if (lastFound !== null) draw(lastFound);
278
+ });
279
+ }
280
+
281
+ const tick = () => fetchFleet().then((found) => {
282
+ if (found) recordHistory(found);
283
+ draw(found);
284
+ });
111
285
  tick();
112
286
  setInterval(tick, 3000);
113
287
  const theme = document.getElementById("theme");
@@ -124,5 +298,5 @@ const FLEET = (function () {
124
298
  if (document.readyState === "loading") document.addEventListener("DOMContentLoaded", () => { switcher(); overview(); });
125
299
  else { switcher(); overview(); }
126
300
  }
127
- return { current, totals, optionText, ago };
301
+ return { current, totals, optionText, ago, sortAndFilter, sparkPoints };
128
302
  })();
@@ -87,14 +87,15 @@ const WORDS = {
87
87
  "whatif.model": "Model", "whatif.slots": "Slots", "whatif.auto": "Follow the ladder", "whatif.current": "in use", "whatif.copy": "copy this stack plan command",
88
88
  "whatif.need": "{w} · KV {kv}{mtp}: the LLM needs {need} in all; ", "whatif.pick": "stack plan would choose {w} · KV {kv}{mtp} on this card.",
89
89
  "whatif.refused": "stack plan would refuse this: not even the 64K floor fits.", "whatif.fail": "the sandbox did not answer",
90
+ "sandbox.reset": "Reset",
90
91
  "apply.h": "Installing", "apply.h.rollback": "Rolling back", "apply.sub": "plan {plan} · {t} so far", "apply.p": "stack apply is running on this computer; this only reads the progress it records (each component's step and byte counts, no file names). Stopping or retrying stays in the terminal.",
91
92
  "apply.step.engine": "engine", "apply.step.download": "download", "apply.step.install": "install", "apply.step.start": "start", "apply.step.verify": "verify",
92
93
  "apply.step.wait": "working", "apply.phase.download": "downloading", "apply.phase.verify": "checking", "apply.phase.loading": "loading", "apply.state.waiting": "waiting",
93
94
  "apply.state.ok": "done", "apply.state.failed": "failed", "apply.state.skipped": "skipped", "apply.state.running": "working", "apply.eta": "about {t} left",
94
95
  "st.installing": "installing", "dur.s": "{s}s", "dur.m": "{m}m {s}s",
95
96
  "filter.aria": "filter by kind", "filter.all": "all", "filter.chat": "chat", "filter.embedding": "embed", "filter.rerank": "rerank", "filter.stt": "speech",
96
- "filter.failed": "failed", "log.none.filter": "None of the recent calls is of this kind.", "tl.h": "Timeline", "tl.sub": "{n} calls this page's server has seen · last {m} min · click the chart to pick where a replay starts",
97
- "tl.speed": "replay speed", "tl.pause": "Pause", "tl.resume": "Resume ({n} waiting)", "tl.replay": "Replay", "tl.stop": "Stop replay {i}/{n}",
97
+ "filter.failed": "failed", "log.none.filter": "None of the recent calls is of this kind.", "tl.h": "Timeline", "tl.sub": "{n} calls this page's server has seen · last {m} min · click or use arrow keys to pick where a replay starts",
98
+ "tl.speed": "replay speed", "tl.pause": "Pause", "tl.resume": "Resume ({n} waiting)", "tl.replay": "Replay", "tl.stop": "Stop replay {i}/{n}", "tl.live": "live", "tl.from": "replay from {at}",
98
99
  "embed.open": "Open the full board ↗",
99
100
  "notify.off": "Alert notifications: off (the browser asks for permission)", "notify.on": "Alert notifications: on", "notify.denied": "The browser blocked notifications; allow them in the site settings, then click",
100
101
  "notify.title": "localmodels · {host}", "notify.failing": "{r}: most recent calls failed ({f} of {n})", "notify.applied": "stack apply has ended; take a look",
@@ -125,7 +125,7 @@
125
125
  </section>
126
126
  </div>
127
127
  </main>
128
- <div class="hint" id="hint"></div>
128
+ <div class="hint" id="hint" role="tooltip"></div>
129
129
  <script src="nav.js"></script>
130
130
  <script src="view.js"></script>
131
131
  <script src="fleet.js"></script>
@@ -8,6 +8,7 @@
8
8
  const NAV = {
9
9
  links: [],
10
10
  tabs: [],
11
+ figures: {},
11
12
  active: null,
12
13
  pinned: null, // a clicked item holds until the user scrolls: the last sections cannot reach the top
13
14
 
@@ -40,6 +41,7 @@ const NAV = {
40
41
  const setRail = (on) => {
41
42
  document.body.classList.toggle("rail", on);
42
43
  rail.title = t(on ? "nav.expand" : "nav.rail");
44
+ this.syncTitles();
43
45
  try { localStorage.setItem("lm-rail", on ? "1" : "0"); } catch (e) { /* not kept */ }
44
46
  setTimeout(() => this.place(), 260);
45
47
  };
@@ -68,7 +70,7 @@ const NAV = {
68
70
  // of the page, even if it never reaches the top.
69
71
  spy() {
70
72
  if (this.pinned) return;
71
- const line = 120;
73
+ const line = 112;
72
74
  let id = this.links[0].dataset.nav;
73
75
  for (const section of this.sections) if (section && section.getBoundingClientRect().top <= line) id = section.id;
74
76
  if (innerHeight + scrollY >= document.documentElement.scrollHeight - 4) {
@@ -88,7 +90,7 @@ const NAV = {
88
90
  else a.removeAttribute("aria-current");
89
91
  }
90
92
  const tab = this.tabs.find((a) => a.dataset.nav === id);
91
- if (tab && tab.parentElement.offsetParent) tab.scrollIntoView({ block: "nearest", inline: "center", behavior: REDUCED ? "auto" : "smooth" });
93
+ if (tab && tab.parentElement && tab.parentElement.offsetParent && tab.scrollIntoView) tab.scrollIntoView({ block: "nearest", inline: "nearest", behavior: REDUCED ? "auto" : "smooth" });
92
94
  if (history.replaceState) history.replaceState(null, "", `#${id}`);
93
95
  this.place();
94
96
  },
@@ -125,8 +127,9 @@ const NAV = {
125
127
  rerank: calls("rerank"),
126
128
  stt: calls("stt"),
127
129
  };
130
+ this.figures = figures;
128
131
  const sick = new Set(v.components.filter((c) => c.state === "stopped" || c.state === "failed" || (c.perf.calls && c.perf.failed * 2 > c.perf.calls)).map((c) => ({ llm: "speed", decision: "jev" })[c.id] || c.id));
129
- for (const link of this.links) link.classList.toggle("sick", sick.has(link.dataset.nav) || (link.dataset.nav === "flow" && sick.size > 0));
132
+ for (const link of [...this.links, ...this.tabs]) link.classList.toggle("sick", sick.has(link.dataset.nav) || (link.dataset.nav === "flow" && sick.size > 0));
130
133
  for (const badge of document.querySelectorAll(".side .badge")) {
131
134
  const key = badge.dataset.badge;
132
135
  const text = figures[key] || "", cls = `badge${key === "jev" && lastTier ? ` tchip t-${lastTier.tier}` : ""}`;
@@ -135,6 +138,22 @@ const NAV = {
135
138
  if (badge.className !== cls) badge.className = cls;
136
139
  if (badge.title !== title) badge.title = title;
137
140
  }
141
+ this.syncTitles();
142
+ },
143
+
144
+ syncTitles() {
145
+ const collapsed = document.body.classList.contains("rail");
146
+ for (const a of this.links) {
147
+ if (!collapsed) {
148
+ if (a.title !== "") a.title = "";
149
+ continue;
150
+ }
151
+ const span = a.querySelector("[data-i18n]") || a.querySelector("span:not(.badge)") || a.querySelector("span");
152
+ const label = span ? span.textContent.trim() : "";
153
+ const fig = (this.figures && this.figures[a.dataset.nav]) || "";
154
+ const next = label && fig ? `${label} · ${fig}` : label || fig;
155
+ if (a.title !== next) a.title = next;
156
+ }
138
157
  },
139
158
 
140
159
  // A running stack apply: the flow item says so until it ends.
@@ -35,11 +35,13 @@
35
35
  --c-draft: #db2777;
36
36
  --c-process: #64748b;
37
37
  --c-llm: #6366f1;
38
+ --c-llm_fast: #0284c7;
38
39
  --c-decision: #ea580c;
39
40
  --c-embedding: #16a34a;
40
41
  --c-rerank: #9333ea;
41
42
  --c-stt: #e11d48;
42
43
  --c-tts: #c026d3;
44
+ --c-search: #0d9488;
43
45
  --c-harness: #475569;
44
46
  --c-foreign: #8b8b94;
45
47
  --c-reserve: #a1a1aa;
@@ -51,43 +53,47 @@
51
53
  --c-client-3: #c026d3;
52
54
  }
53
55
  :root[data-theme="dark"] {
54
- --bg: #1b1b1e;
56
+ --bg: #121215;
55
57
  --fg: #ececf0;
56
58
  --fg-2: #c2c2c9;
57
59
  --muted: #aaaab4;
58
60
  --line: #34343a;
59
61
  --line-2: #2c2c31;
60
- --card: #232327;
61
- --card-2: #28282d;
62
+ --card: #1b1b1e;
63
+ --card-2: #232327;
62
64
  --pill: #2e2e33;
63
65
  --accent: #9b95ff;
64
66
  --accent-soft: #2e2b52;
65
- --accent-fg: #1b1b1e;
67
+ --accent-fg: #121215;
66
68
  --ok: #4ade80;
67
69
  --warn: #fdba74;
68
70
  --bad: #fb7185;
69
- --side-active: #2c2c31;
71
+ --side-active: #232327;
70
72
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(255, 255, 255, 0.08);
73
+ --c-llm_fast: #38bdf8;
74
+ --c-search: #2dd4bf;
71
75
  }
72
76
  @media (prefers-color-scheme: dark) {
73
77
  :root:not([data-theme="light"]) {
74
- --bg: #1b1b1e;
78
+ --bg: #121215;
75
79
  --fg: #ececf0;
76
80
  --fg-2: #c2c2c9;
77
81
  --muted: #aaaab4;
78
82
  --line: #34343a;
79
83
  --line-2: #2c2c31;
80
- --card: #232327;
81
- --card-2: #28282d;
84
+ --card: #1b1b1e;
85
+ --card-2: #232327;
82
86
  --pill: #2e2e33;
83
87
  --accent: #9b95ff;
84
88
  --accent-soft: #2e2b52;
85
- --accent-fg: #1b1b1e;
89
+ --accent-fg: #121215;
86
90
  --ok: #4ade80;
87
91
  --warn: #fdba74;
88
92
  --bad: #fb7185;
89
- --side-active: #2c2c31;
93
+ --side-active: #232327;
90
94
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(255, 255, 255, 0.08);
95
+ --c-llm_fast: #38bdf8;
96
+ --c-search: #2dd4bf;
91
97
  }
92
98
  }
93
99
 
@@ -148,7 +154,7 @@ button { font: inherit; color: inherit; }
148
154
  body.rail { grid-template-columns: 56px minmax(0, 1fr); }
149
155
  body.rail .side { padding: 12px 8px; }
150
156
  body.rail .brand { flex-direction: column; gap: 10px; padding: 2px 0 12px; }
151
- body.rail .brand-name, body.rail .side h6, body.rail .side a > span, body.rail .foot > :not(.live), body.rail .live > span { display: none; }
157
+ body.rail .brand-name, body.rail .side h6, body.rail .side a > span, body.rail .foot > :not(.live), body.rail .side .live > span { display: none; }
152
158
  body.rail .brand .rail-btn { margin: 0; }
153
159
  body.rail .side a { justify-content: center; padding: 0; }
154
160
  body.rail .side a svg { width: 17px; height: 17px; }
@@ -196,7 +202,6 @@ main { min-width: 0; padding: 0 22px 60px; }
196
202
  border-radius: 10px; background: color-mix(in srgb, var(--warn) 7%, var(--card)); color: var(--fg-2);
197
203
  }
198
204
  [hidden] { display: none !important; }
199
- section { scroll-margin-top: 56px; }
200
205
  .card { margin-bottom: 16px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
201
206
  .card > header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
202
207
  .card > header h2 { margin: 0; font-size: 14px; font-weight: 650; }
@@ -214,7 +219,11 @@ section { scroll-margin-top: 56px; }
214
219
  .tag.none { background: var(--pill); color: var(--muted); }
215
220
 
216
221
  /* ---------------------------------------------------------------- the flow (routing) graph */
217
- .flow { position: relative; display: grid; grid-template-columns: minmax(110px, 150px) minmax(130px, 170px) minmax(0, 1fr); column-gap: 64px; align-items: center; padding: 6px 0 4px; }
222
+ .flow { position: relative; display: grid; grid-template-columns: minmax(110px, 150px) minmax(130px, 170px) minmax(0, 1fr); column-gap: 64px; align-items: center; min-height: 140px; padding: 6px 0 4px; }
223
+ .flow:has(#hub:empty) { border-radius: 10px; background: var(--pill); animation: skeleton 1.5s ease-in-out infinite; }
224
+ .flow:has(#hub:empty) .hub { visibility: hidden; }
225
+ #gpus:empty, #ram-body:empty, #speed-body:empty { min-height: 72px; border-radius: 10px; background: var(--pill); animation: skeleton 1.5s ease-in-out infinite; }
226
+ @keyframes skeleton { 50% { opacity: 0.55; } }
218
227
  .flow svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
219
228
  .wires path { fill: none; stroke-width: 1.4; stroke-dasharray: 3 5; opacity: 0.75; }
220
229
  .wires path.hot { animation: flow 0.6s linear infinite; opacity: 1; stroke-width: 1.8; }
@@ -263,8 +272,11 @@ section { scroll-margin-top: 56px; }
263
272
  .tile:focus-visible, .row:focus-visible, .notice.alert:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; z-index: 3; }
264
273
  .notice.alert { border: 1px solid color-mix(in srgb, var(--bad) 45%, var(--line)); background: color-mix(in srgb, var(--bad) 7%, var(--card)); color: var(--bad); cursor: pointer; }
265
274
  .notice.alert::before { content: "⚠ "; }
266
- .side a.sick .badge { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
267
- .side a.sick svg { color: var(--bad); }
275
+ .nav a.sick, .side a.sick { color: var(--bad); }
276
+ .nav a.sick::before, .side a.sick::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--bad); flex: none; }
277
+ body.rail .nav a.sick::before, body.rail .side a.sick::before { position: absolute; top: 5px; right: 9px; }
278
+ .nav a.sick .badge, .side a.sick .badge { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
279
+ .nav a.sick svg, .side a.sick svg { color: var(--bad); }
268
280
  .row.busy { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 12%, transparent); }
269
281
  .row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
270
282
  .row.serving .dot { background: var(--ok); }
@@ -402,7 +414,10 @@ section { scroll-margin-top: 56px; }
402
414
  .gpu + .gpu { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
403
415
 
404
416
  .whatif { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line-2); }
417
+ .whatif-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
405
418
  .whatif h3 { margin: 0 0 2px; font-size: 13px; font-weight: 650; }
419
+ .whatif-reset { border: 1px solid var(--line); background: var(--card); color: var(--fg-2); }
420
+ .whatif-reset:hover { color: var(--fg); }
406
421
  .whatif .ctl { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
407
422
  .whatif input[type="range"] { flex: 1; accent-color: var(--accent); }
408
423
  .whatif .val { min-width: 74px; font: 600 15px/1 var(--font); font-variant-numeric: tabular-nums; }
@@ -513,19 +528,37 @@ section { scroll-margin-top: 56px; }
513
528
  .empty { padding: 26px; text-align: center; color: var(--muted); }
514
529
 
515
530
  @media (max-width: 980px) {
531
+ html { scroll-padding-top: 108px; }
516
532
  body, body.rail { grid-template-columns: minmax(0, 1fr); }
517
533
  .side { display: none; }
518
- .tabs { position: sticky; top: 48px; z-index: 4; display: flex; gap: 4px; margin: 0 -22px 12px; padding: 6px 22px; overflow-x: auto; scrollbar-width: none; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
534
+ .top #live {
535
+ display: inline-flex; align-items: center; gap: 5px; max-width: 148px; height: 22px; padding: 0 8px;
536
+ border-radius: 11px; background: var(--pill); font-size: 11px; color: var(--fg-2);
537
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; min-width: 24px;
538
+ }
539
+ .top #live i { flex: none; }
540
+ .top #live > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
541
+ .tabs {
542
+ position: sticky; top: 48px; z-index: 4; display: flex; gap: 4px; margin: 0 -22px 12px; padding: 6px 22px;
543
+ overflow-x: auto; scrollbar-width: none; background: color-mix(in srgb, var(--bg) 92%, transparent);
544
+ backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
545
+ -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
546
+ mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
547
+ }
519
548
  .tabs a { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px; color: var(--fg-2); text-decoration: none; white-space: nowrap; font-size: 12.5px; transition: background 0.2s, color 0.2s; }
520
549
  .tabs a svg { width: 14px; height: 14px; color: var(--muted); }
521
550
  .tabs a.on { background: var(--card); color: var(--fg); box-shadow: 0 0 0 0.5px var(--line), 0 1px 2px rgba(0, 0, 0, 0.06); }
522
551
  .tabs a.on svg { color: var(--accent); }
552
+ #tabs a.sick, #tabs a.sick.on { color: var(--bad); }
553
+ #tabs a.sick svg, #tabs a.sick.on svg { color: var(--bad); }
554
+ #tabs a.sick::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--bad); flex: none; }
523
555
  .speed, .concepts, .below { grid-template-columns: minmax(0, 1fr); }
524
556
  .flow { column-gap: 28px; grid-template-columns: minmax(84px, 110px) minmax(110px, 130px) minmax(0, 1fr); }
525
557
  }
526
558
  @media (prefers-reduced-motion: reduce) {
527
559
  html { scroll-behavior: auto; }
528
560
  *, *::before, *::after { animation: none !important; transition: none !important; }
561
+ #gpus:empty, #ram-body:empty, #speed-body:empty, .flow:has(#hub:empty) { animation: none; }
529
562
  .fliers { display: none; }
530
563
  }
531
564
 
@@ -627,6 +660,7 @@ section { scroll-margin-top: 56px; }
627
660
  .tl-head .go { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
628
661
  .tl.replaying .tl-head .go { background: var(--bad); }
629
662
  .tl-chart { display: block; width: 100%; height: 44px; margin-top: 6px; cursor: crosshair; }
663
+ .tl-chart:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
630
664
  .tl-chart rect { transition: height 0.3s, y 0.3s; }
631
665
  .tl-chart .from { fill: var(--fg); opacity: 0.5; }
632
666
  .tl-chart .head { fill: var(--accent); }
@@ -716,6 +750,9 @@ body.fleet main { max-width: 1180px; margin: 0 auto; }
716
750
  }
717
751
  .fl-row { padding: 12px 0; border-top: 1px solid var(--line-2); }
718
752
  .fl-row:first-child { border-top: 0; }
753
+ .fl-row[data-href] { cursor: pointer; }
754
+ .fl-row[data-href]:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border, var(--line-2))); }
755
+ .fl-spark { width: 56px; height: 16px; color: var(--accent); flex-shrink: 0; }
719
756
  .fl-head b { white-space: nowrap; }
720
757
  .fl-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
721
758
  .fl-head a { color: inherit; text-decoration: none; }
@@ -733,5 +770,13 @@ body.fleet main { max-width: 1180px; margin: 0 auto; }
733
770
  .fl-gpus { display: grid; gap: 4px; margin: 8px 0 0 16px; }
734
771
  .fl-gpu { display: grid; grid-template-columns: 52px minmax(80px, 320px) auto; align-items: center; gap: 10px; font-size: 12px; }
735
772
  .fl-gpu-l, .fl-num { color: var(--muted); font-variant-numeric: tabular-nums; }
736
- .fl-bar { height: 8px; border-radius: 4px; background: var(--pill); overflow: hidden; }
737
- .fl-bar i { display: block; height: 100%; background: var(--c-llm); }
773
+ .fl-gpu .fl-bar { display: block; height: 8px; border-radius: 4px; background: var(--pill); overflow: hidden; }
774
+ .fl-gpu .fl-bar i { display: block; height: 100%; background: var(--c-llm); }
775
+ div.fl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
776
+ div.fl-bar input[type="search"] {
777
+ flex: 1 1 220px; min-width: 0; height: 28px; padding: 0 10px; border: 1px solid var(--line);
778
+ border-radius: 7px; background: var(--card); color: var(--fg); font: inherit; font-size: 12.5px;
779
+ }
780
+ div.fl-bar input[type="search"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
781
+ .fl-filter { white-space: nowrap; }
782
+ .fl-filter[aria-pressed="true"] { font-weight: 560; }