@opennodes/registry 0.1.29 → 0.1.31
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/package.json +1 -1
- package/src/web/index.html +26 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opennodes/registry",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
4
4
|
"description": "OpenNodes (ONP) reference registry: node registration with proof-of-resource qualification (Stage A/B/C), transparent ranking, enforceable estimates, catalog importers (OpenRouter, Hugging Face, models.dev, Ollama), MCP surface, and the web app (catalog, chat, advisor, Node Builder)",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
package/src/web/index.html
CHANGED
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
<style>
|
|
12
12
|
:root {
|
|
13
13
|
--ground: #F7F9FA; --panel: #FFFFFF; --panel-2: #EEF2F4;
|
|
14
|
-
--ink: #1C2733; --muted: #
|
|
15
|
-
--accent: #0F7A80; --accent-soft: #E0EFF0; --good: #2F6B3A;
|
|
14
|
+
--ink: #1C2733; --muted: #4F6170; --faint: #5A6C7C; --line: #D6DEE3; --line-2: #EEF2F4; /* both ≥4.5:1 on every surface */
|
|
15
|
+
--accent: #0F7A80; --accent-soft: #E0EFF0; --on-accent: #FFFFFF; --good: #2F6B3A;
|
|
16
16
|
--warn: #A16207; --bad: #A33333; --star: #B45309;
|
|
17
17
|
}
|
|
18
18
|
@media (prefers-color-scheme: dark) {
|
|
19
19
|
:root {
|
|
20
20
|
--ground: #101820; --panel: #16202A; --panel-2: #1C2833;
|
|
21
|
-
--ink: #E4EBF0; --muted: #
|
|
22
|
-
--accent: #4FC0C6; --accent-soft: #12333A; --good: #7CC08A;
|
|
21
|
+
--ink: #E4EBF0; --muted: #A3B4C2; --faint: #8A9CAB; --line: #2C3B48; --line-2: #223140;
|
|
22
|
+
--accent: #4FC0C6; --accent-soft: #12333A; --on-accent: #0B1A20; --good: #7CC08A;
|
|
23
23
|
--warn: #D9A648; --bad: #E08585; --star: #D9A648;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
.toolbar input, .toolbar select { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 0.42rem 0.6rem; }
|
|
40
40
|
.toolbar input[type=number] { width: 8.5rem; }
|
|
41
41
|
.mgrid { display: grid; grid-template-columns: 23rem minmax(0, 1fr); gap: 1.2rem; align-items: start; }
|
|
42
|
-
@media (max-width: 980px) { .mgrid { grid-template-columns: 1fr; } }
|
|
42
|
+
@media (max-width: 980px) { .mgrid { grid-template-columns: minmax(0, 1fr); } }
|
|
43
43
|
.mlist { display: flex; flex-direction: column; gap: 0.4rem; max-height: 76vh; overflow-y: auto; padding-right: 0.25rem; }
|
|
44
44
|
.mitem { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 0.6rem 0.75rem; cursor: pointer; }
|
|
45
45
|
.mitem:hover { border-color: var(--accent); }
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
|
|
65
65
|
/* chat */
|
|
66
66
|
.chatgrid { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 1.2rem; align-items: start; }
|
|
67
|
-
@media (max-width: 980px) { .chatgrid { grid-template-columns: 1fr; } }
|
|
67
|
+
@media (max-width: 980px) { .chatgrid { grid-template-columns: minmax(0, 1fr); } }
|
|
68
68
|
.chatlog { display: flex; flex-direction: column; gap: 0.7rem; min-height: 20rem; max-height: 60vh; overflow-y: auto; padding: 1rem; }
|
|
69
69
|
.msg { max-width: 46rem; font-size: 0.9rem; line-height: 1.55; white-space: pre-wrap; border-radius: 8px; padding: 0.6rem 0.9rem; }
|
|
70
70
|
.msg.user { align-self: flex-end; background: var(--accent-soft); border: 1px solid var(--accent); }
|
|
@@ -82,7 +82,17 @@
|
|
|
82
82
|
nav a.tab:hover { text-decoration: none; color: var(--ink); }
|
|
83
83
|
nav a.tab.active { color: var(--ink); border-bottom-color: var(--accent); }
|
|
84
84
|
nav .spacer { flex: 1; }
|
|
85
|
-
nav .cta { align-self: center; background: var(--accent); color:
|
|
85
|
+
nav .cta { align-self: center; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 0.82rem; border-radius: 6px; padding: 0.55rem 1rem; }
|
|
86
|
+
/* phones: the tabs wrap onto rows instead of widening the page */
|
|
87
|
+
@media (max-width: 760px) {
|
|
88
|
+
nav .wrap { flex-wrap: wrap; height: auto; gap: 0 1.1rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
|
|
89
|
+
nav .brand { flex-basis: 100%; padding: 0.2rem 0 0.3rem; }
|
|
90
|
+
nav a.tab, nav .ext { padding: 0.45rem 0; }
|
|
91
|
+
nav .spacer { display: none; }
|
|
92
|
+
nav .cta { margin-top: 0.3rem; }
|
|
93
|
+
}
|
|
94
|
+
.rm { font: inherit; cursor: pointer; color: var(--muted); background: none; border: 0; padding: 0.1rem 0.3rem; min-width: 24px; min-height: 24px; border-radius: 4px; }
|
|
95
|
+
.rm:hover { color: var(--ink); background: var(--line-2); }
|
|
86
96
|
nav .cta:hover { text-decoration: none; opacity: 0.92; }
|
|
87
97
|
nav .ext { align-self: center; font-size: 0.78rem; color: var(--muted); }
|
|
88
98
|
|
|
@@ -161,10 +171,11 @@
|
|
|
161
171
|
color: var(--muted); text-align: left; padding: 0.55rem 0.8rem; background: var(--panel-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
|
|
162
172
|
table.grid td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
|
|
163
173
|
table.grid tr:last-child td { border-bottom: none; }
|
|
174
|
+
table.grid td.mono, #md-artifact { overflow-wrap: anywhere; white-space: normal; } /* long ids wrap on phones */
|
|
164
175
|
.tablewrap { overflow-x: auto; }
|
|
165
176
|
|
|
166
177
|
.btn { font: inherit; font-weight: 600; font-size: 0.82rem; padding: 0.55rem 1rem; border-radius: 6px;
|
|
167
|
-
border: 1px solid var(--accent); background: var(--accent); color:
|
|
178
|
+
border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); cursor: pointer; }
|
|
168
179
|
.btn.sec { background: transparent; color: var(--accent); }
|
|
169
180
|
.btn:disabled { opacity: 0.5; cursor: default; }
|
|
170
181
|
input.wide, textarea.wide { width: 100%; box-sizing: border-box; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 0.55rem 0.7rem; }
|
|
@@ -173,10 +184,12 @@
|
|
|
173
184
|
.err { color: var(--bad); font-size: 0.82rem; margin-top: 0.5rem; }
|
|
174
185
|
.stage { display: grid; grid-template-columns: 7rem 1fr; gap: 0.8rem; padding: 0.5rem 0; border-bottom: 1px dashed var(--line); font-size: 0.82rem; }
|
|
175
186
|
.stage:last-child { border-bottom: none; }
|
|
176
|
-
.stage .k { font-family: "IBM Plex Mono", monospace; font-size: 0.66rem; font-weight: 600; color: var(--accent); }
|
|
187
|
+
.stage .k { min-width: 0; overflow-wrap: anywhere; font-family: "IBM Plex Mono", monospace; font-size: 0.66rem; font-weight: 600; color: var(--accent); }
|
|
188
|
+
.stage.wide { grid-template-columns: minmax(0, 14rem) 1fr; } /* node ids and suite names are longer than stage labels */
|
|
189
|
+
@media (max-width: 560px) { .stage.wide { grid-template-columns: 1fr; gap: 0.15rem; } }
|
|
177
190
|
.tabbtns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
|
|
178
191
|
.tabbtn { font: inherit; font-weight: 600; font-size: 0.8rem; padding: 0.5rem 1rem; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; }
|
|
179
|
-
.tabbtn.on { background: var(--accent); border-color: var(--accent); color:
|
|
192
|
+
.tabbtn.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
|
|
180
193
|
/* model/node card header */
|
|
181
194
|
.statstrip { display: flex; flex-wrap: wrap; gap: 1.8rem; margin: 0.8rem 0 0.4rem; }
|
|
182
195
|
.stat { display: flex; flex-direction: column; gap: 0.1rem; }
|
|
@@ -993,7 +1006,7 @@ async function loadModel(artifact) {
|
|
|
993
1006
|
$('#md-perfsec').innerHTML = probed.length ? `<h2 id="sec-perf">Performance & uptime <span class="counts">registry-measured, blind-probed</span></h2>
|
|
994
1007
|
<div class="panel pad">` + probed.map((o) => {
|
|
995
1008
|
const obs = o.observed;
|
|
996
|
-
return `<div class="stage"><span class="k">${esc(o.node_id)}</span><span class="num">
|
|
1009
|
+
return `<div class="stage wide"><span class="k">${esc(o.node_id)}</span><span class="num">
|
|
997
1010
|
${obs.ttft_ms?.p50 != null ? `ttft <b>${obs.ttft_ms.p50}ms</b> p50${obs.ttft_ms.p95 != null ? ` / ${obs.ttft_ms.p95}ms p95` : ''} · ` : ''}
|
|
998
1011
|
${obs.tps > 0 ? `<b>${obs.tps}</b> tok/s · ` : ''}
|
|
999
1012
|
${obs.availability?.ratio != null ? `up <b>${Math.round(obs.availability.ratio * 100)}%</b> · ` : ''}
|
|
@@ -1003,7 +1016,7 @@ async function loadModel(artifact) {
|
|
|
1003
1016
|
|
|
1004
1017
|
const bench = list.flatMap((o) => o.benchmarks || []);
|
|
1005
1018
|
$('#md-benchsec').innerHTML = bench.length ? '<h2 id="sec-bench">Benchmarks</h2><div class="panel pad">' + bench.map((b) =>
|
|
1006
|
-
`<div class="stage"><span class="k">${esc(b.suite)}</span><span class="num"><b>${fmt(b.score)}</b> <span class="micro ${b.basis === 'attested' ? 'm-measured' : 'm-claimed'}">${esc(String(b.basis || 'claimed').toUpperCase())}</span></span></div>`).join('') + '</div>' : '';
|
|
1019
|
+
`<div class="stage wide"><span class="k">${esc(b.suite)}</span><span class="num"><b>${fmt(b.score)}</b> <span class="micro ${b.basis === 'attested' ? 'm-measured' : 'm-claimed'}">${esc(String(b.basis || 'claimed').toUpperCase())}</span></span></div>`).join('') + '</div>' : '';
|
|
1007
1020
|
if (bench.length) navBits.push(['#sec-bench', 'BENCHMARKS']);
|
|
1008
1021
|
|
|
1009
1022
|
// related: same family, different artifact
|
|
@@ -1255,7 +1268,7 @@ function renderRoster() {
|
|
|
1255
1268
|
<div style="display:flex; align-items:center; gap:0.5rem; border:1px solid var(--line); border-radius:6px; padding:0.35rem 0.6rem; font-size:0.78rem">
|
|
1256
1269
|
<span class="mono" style="font-size:0.66rem; color:var(--accent)">${i + 1}</span>
|
|
1257
1270
|
<span style="flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap"><b>${esc(targetLabel(t))}</b>${t.offering ? ` <span style="color:var(--muted)">${esc(t.offering.node_id)}</span>` : ' <span class="chip">custom</span>'}</span>
|
|
1258
|
-
<
|
|
1271
|
+
<button type="button" class="rm" data-rm="${i}" title="remove" aria-label="Remove ${esc(targetLabel(t))}">✕</button>
|
|
1259
1272
|
</div>`).join('') || '<p class="prov" style="margin:0">no models yet</p>';
|
|
1260
1273
|
document.querySelectorAll('#ch-chips [data-rm]').forEach((x) => x.addEventListener('click', () => {
|
|
1261
1274
|
chat.roster.splice(Number(x.dataset.rm), 1); renderRoster();
|