@opennodes/registry 0.1.34 → 0.1.36

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.34",
3
+ "version": "0.1.36",
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",
@@ -43,7 +43,7 @@
43
43
  "access": "public"
44
44
  },
45
45
  "dependencies": {
46
- "@opennodes/core": "0.1.11",
46
+ "@opennodes/core": "0.1.14",
47
47
  "pg": "^8.13.1"
48
48
  }
49
49
  }
@@ -630,6 +630,13 @@ function ctxBit(o) {
630
630
  const basis = (o.source === 'import' && !o.serving.context_capped_from) ? ' <span class="micro m-claimed">CLAIMED</span>' : '';
631
631
  return `<span>ctx <b class="num">${fmtInt(o.serving.context_window)}</b>${cap}${basis}</span>`;
632
632
  }
633
+ /** RAM/VRAM to run an Ollama size tag ("8b", "270m") at 4-bit: same estimate as core's memoryGbFor. */
634
+ function memGb(tag) {
635
+ const m = String(tag).match(/^(\d+(?:\.\d+)?)([mb])$/i);
636
+ if (!m) return null;
637
+ const p = m[2].toLowerCase() === 'b' ? Number(m[1]) : Number(m[1]) / 1000;
638
+ return Math.round((p * 0.6 + 0.5 + Math.min(4, p * 0.06)) * 10) / 10;
639
+ }
633
640
  /** Listing-only imports carry no endpoints.openai: they are shown but never called. */
634
641
  const invocable = (o) => o.invocable !== false && Boolean(o.endpoints?.openai);
635
642
  /** Ollama library entries and local-app catalogs have no server: their endpoint is the visitor's own computer. */
@@ -813,7 +820,7 @@ window.toggleRow = async function (el, idx) {
813
820
  ${o.serving?.max_output_tokens ? `<dt>max output</dt><dd class="num">${fmtInt(o.serving.max_output_tokens)}</dd>` : ''}
814
821
  ${hwStr(o) ? `<dt>hardware</dt><dd>${hwStr(o)}</dd>` : ''}
815
822
  <dt>schemes</dt><dd>${esc((o.pricing.schemes || []).join(', '))}</dd>
816
- ${o.local ? `<dt>run locally</dt><dd><code style="background:var(--panel-2); padding:0.1em 0.4em; border-radius:3px" class="mono">${esc(o.local.run)}</code>${o.local.pulls ? ` <span class="prov" style="display:inline">· ${esc(o.local.pulls)} pulls</span>` : ''}${o.local.sizes ? ` <span class="prov" style="display:inline">· sizes: ${esc(o.local.sizes.join(' '))}</span>` : ''}</dd>` : ''}
823
+ ${o.local ? `<dt>run locally</dt><dd><code style="background:var(--panel-2); padding:0.1em 0.4em; border-radius:3px" class="mono">${esc(o.local.run)}</code>${o.local.pulls ? ` <span class="prov" style="display:inline">· ${esc(o.local.pulls)} pulls</span>` : ''}${o.local.sizes ? `<br><span class="prov" style="display:inline" title="Memory to run it at Ollama's default 4-bit quantization: weights plus runtime and a default context; an estimate">memory needed: ${o.local.sizes.map((t) => `${esc(t)} ~${memGb(t) ?? '?'} GB`).join(' · ')}</span>` : ''}</dd>` : ''}
817
824
  </dl>
818
825
  </div>
819
826
  <div>