@opennodes/registry 0.1.14 → 0.1.16
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/stageb.js +3 -4
- package/src/web/index.html +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opennodes/registry",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
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/stageb.js
CHANGED
|
@@ -182,10 +182,9 @@ export async function runStageB(store, nodeId, card, { safeFetch, capacity = {}
|
|
|
182
182
|
await store.recordProbe(nodeId, offering.offering_id, 'B', 'context', verdict.context.ok,
|
|
183
183
|
`claimed ${verdict.context.claimed}, verified ${verdict.context.verified_cap}`,
|
|
184
184
|
verdict.context);
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}
|
|
185
|
+
// Every run replaces the last result: a pass stores the full claimed window, which lifts an
|
|
186
|
+
// earlier cap; 0 = nothing verified, shown as unverified rather than trusting the claim.
|
|
187
|
+
await store.setObservation(nodeId, offering.offering_id, 'context_cap', verdict.context.verified_cap);
|
|
189
188
|
|
|
190
189
|
verdict.capacity = await probeCapacity(safeFetch, card, offering, capacity);
|
|
191
190
|
await store.recordProbe(nodeId, offering.offering_id, 'B', 'capacity', verdict.capacity.ok, null, verdict.capacity);
|
package/src/web/index.html
CHANGED
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; }
|
|
154
154
|
.btn.sec { background: transparent; color: var(--accent); }
|
|
155
155
|
.btn:disabled { opacity: 0.5; cursor: default; }
|
|
156
|
-
input.wide { width: 100%; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 0.55rem 0.7rem; }
|
|
156
|
+
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; }
|
|
157
157
|
label.f { display: block; font-size: 0.78rem; color: var(--muted); margin: 0.9rem 0 0.25rem; }
|
|
158
158
|
.ok { color: var(--good); } .fail { color: var(--bad); } .warncol { color: var(--warn); }
|
|
159
159
|
.err { color: var(--bad); font-size: 0.82rem; margin-top: 0.5rem; }
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
</div>
|
|
233
233
|
<details class="panel pad" id="advisor" style="margin:0.2rem 0 0.8rem">
|
|
234
234
|
<summary style="cursor:pointer; font-weight:600; font-size:0.9rem">Ask the advisor — describe a task, get the best node + model, priced and explained</summary>
|
|
235
|
-
<textarea id="adv-task" rows="
|
|
235
|
+
<textarea id="adv-task" rows="4" class="wide" style="margin-top:0.6rem; font-size:0.86rem; resize:vertical" placeholder="e.g. Translate this 20-page contract into Polish and extract the payment terms as JSON"></textarea>
|
|
236
236
|
<div class="toolbar" style="margin-top:0.4rem">
|
|
237
237
|
<select id="adv-preset"><option value="">balanced</option><option value="cheap">cheapest</option><option value="fast">fastest</option><option value="quality">best quality</option><option value="private">privacy-first</option></select>
|
|
238
238
|
<span class="switchrow" id="adv-verified"><span class="switch"></span><b style="font-size:0.78rem">Verified only</b></span>
|