openzoo 0.43.4 → 0.43.5
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/lib/grokui.mjs +12 -0
- package/package.json +1 -1
package/lib/grokui.mjs
CHANGED
|
@@ -639,6 +639,7 @@ const APP_HTML = `<!doctype html>
|
|
|
639
639
|
<div class="hrow"><span>our cost (cogs)</span><span id="hYouCogs">—</span></div>
|
|
640
640
|
<div class="hrow"><span>margin</span><span id="hYouMargin" class="hlime">—</span></div>
|
|
641
641
|
<div class="hrow"><span>direct would be</span><span id="hYouDirect" class="hember">—</span></div>
|
|
642
|
+
<div class="hrow"><span>saved vs. naked calls</span><span id="hYouSaved" class="hlime">—</span></div>
|
|
642
643
|
<div class="hfoot" id="hFoot">loading…</div>
|
|
643
644
|
</div>
|
|
644
645
|
<div id="log"></div>
|
|
@@ -1034,6 +1035,17 @@ const APP_HTML = `<!doctype html>
|
|
|
1034
1035
|
document.getElementById('hYouCogs').textContent = usd(cogs);
|
|
1035
1036
|
document.getElementById('hYouMargin').textContent = margin;
|
|
1036
1037
|
document.getElementById('hYouDirect').textContent = usd(direct);
|
|
1038
|
+
const savedEl = document.getElementById('hYouSaved');
|
|
1039
|
+
if (spent > 0) {
|
|
1040
|
+
const mult = direct / spent;
|
|
1041
|
+
// honest either way: >=1x is a real saving vs a naked direct call,
|
|
1042
|
+
// <1x means you're currently paying MORE than direct would cost —
|
|
1043
|
+
// don't dress that up as green when it isn't one
|
|
1044
|
+
savedEl.textContent = mult.toFixed(2) + 'x';
|
|
1045
|
+
savedEl.className = mult >= 1 ? 'hlime' : 'hember';
|
|
1046
|
+
} else {
|
|
1047
|
+
savedEl.textContent = '—';
|
|
1048
|
+
}
|
|
1037
1049
|
document.getElementById('hFoot').textContent = (you.paidCalls || 0) + ' paid calls this session';
|
|
1038
1050
|
} catch (e) {
|
|
1039
1051
|
document.getElementById('hFoot').textContent = 'error: ' + e.message;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openzoo",
|
|
3
|
-
"version": "0.43.
|
|
3
|
+
"version": "0.43.5",
|
|
4
4
|
"description": "Local x402-paying proxy + MCP server for openzoo.fun — point any OpenAI-compatible harness (Cursor, Claude Code, aider, SDKs) at localhost and it pays per call from a local burner wallet. Solana and Base rails live; Robinhood experimental.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|