@opennodes/registry 0.1.22 → 0.1.23

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opennodes/registry",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
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",
@@ -1780,13 +1780,14 @@ function claimBanner(n, card) {
1780
1780
  }
1781
1781
 
1782
1782
  /** Server-location check (registry location.js) in plain words. */
1783
- function locationRow(loc) {
1783
+ function locationRow(loc, imported) {
1784
1784
  if (!loc) return '';
1785
1785
  const srv = loc.server || {};
1786
+ const claim = imported ? 'inferred for this unclaimed listing' : 'declared by the operator';
1786
1787
  const words = {
1787
- match: `✓ server in ${esc(srv.country)}, as declared`,
1788
- same_region: `✓ server in ${esc(srv.country)} (EEA); operator declared ${esc(loc.declared)}`,
1789
- mismatch: `<b style="color:var(--bad, #b42318)">⚠ server in ${esc(srv.country)}, operator declared ${esc(loc.declared)}</b>`,
1788
+ match: `✓ server in ${esc(srv.country)}, matching the country ${imported ? 'inferred for this unclaimed listing' : 'the operator declared'}`,
1789
+ same_region: `✓ server in ${esc(srv.country)} (EEA); country ${claim}: ${esc(loc.declared)}`,
1790
+ mismatch: `<b style="color:var(--bad, #b42318)">⚠ server in ${esc(srv.country)}; country ${claim}: ${esc(loc.declared)}</b>`,
1790
1791
  cdn: `behind a CDN (${esc(srv.network || 'anycast')}) — location not determinable from the network`,
1791
1792
  inconsistent: `<b style="color:var(--bad, #b42318)">⚠ geolocation (${esc(srv.country || '?')}) contradicted by measured latency</b>`,
1792
1793
  unknown: `not determined${loc.reason ? ' — ' + esc(loc.reason) : ''}`,
@@ -1830,7 +1831,7 @@ async function loadNode(id) {
1830
1831
  <div class="panel pad" style="max-width:56rem; margin-top:0.6rem"><table class="grid">
1831
1832
  <tr><td style="color:var(--muted); width:8rem" class="mono">endpoint</td><td class="mono" style="font-size:0.74rem">${card.endpoints?.openai ? esc(card.endpoints.openai) : '— <span style="font-family:inherit; color:var(--muted)">listing only: no known API endpoint, not callable from OpenNodes</span>'}</td></tr>
1832
1833
  ${docsUrl(card.endpoints) ? `<tr><td style="color:var(--muted)" class="mono">docs</td><td class="mono" style="font-size:0.74rem"><a href="${esc(docsUrl(card.endpoints))}" target="_blank" rel="noopener">${esc(docsUrl(card.endpoints))}</a></td></tr>` : ''}
1833
- ${locationRow(n.location)}
1834
+ ${locationRow(n.location, n.source === 'import')}
1834
1835
  ${card.hardware ? `<tr><td style="color:var(--muted)" class="mono">hardware</td><td style="font-size:0.78rem">${hwStr({ hardware: card.hardware })}</td></tr>` : ''}
1835
1836
  <tr><td style="color:var(--muted)" class="mono">revision</td><td class="mono" style="font-size:0.74rem">${esc(card.revision ?? '—')}</td></tr>
1836
1837
  </table></div>