@enigmax/dashboard 0.1.25 → 0.1.26
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/assets/index.html +4 -3
- package/package.json +1 -1
package/assets/index.html
CHANGED
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
<div class="panel-head">
|
|
360
360
|
<h2>Enigma Systems <small>what's active - configuration, not savings</small></h2>
|
|
361
361
|
<div class="ctrls">
|
|
362
|
-
<button id="refreshBtn" type="button" class="
|
|
362
|
+
<button id="refreshBtn" type="button" class="iconbtn" title="Refresh" aria-label="Refresh"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M23 4v6h-6"/><path d="M1 20v-6h6"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/></svg></button>
|
|
363
363
|
<button id="fixPathBtn" type="button" class="toggle">Fix tool paths</button>
|
|
364
364
|
<button id="updateBtn" type="button" class="toggle on">Check & update</button>
|
|
365
365
|
</div>
|
|
@@ -449,7 +449,7 @@
|
|
|
449
449
|
</div>
|
|
450
450
|
<div class="panel" id="usagePanel" style="display:none">
|
|
451
451
|
<h2 style="margin:0 0 4px">Usage limits <small>same windows Claude Code shows</small></h2>
|
|
452
|
-
<div class="sub" style="margin-bottom:12px">Cards marked <span class="tag meas">live</span> show the <b>real % and reset</b> Anthropic reports (the same as Claude's own UI)
|
|
452
|
+
<div class="sub" style="margin-bottom:12px">Cards marked <span class="tag meas">live</span> show the <b>real % and reset</b> Anthropic reports (the same as Claude's own UI). Turn on <code>enigma config usage-api on</code> to fetch them with your local Claude Code login - no proxy or plan limit needed. (The proxy also captures them from <code>enigma claude</code> traffic.) Until live data lands, the card falls back to tokens used, or a % against a plan limit you set (on the card, or <code>enigma config plan-weekly-limit <tokens></code>). Per-model live data appears only when Anthropic sends it.</div>
|
|
453
453
|
<div id="uWindows"></div>
|
|
454
454
|
<div class="grid" style="margin-bottom:16px">
|
|
455
455
|
<div class="card"><div class="label">Est. Cost</div><div id="uCost" class="value accent">-</div><div class="foot">All sessions, per-model pricing</div></div>
|
|
@@ -1772,7 +1772,8 @@ export {
|
|
|
1772
1772
|
$("uBlockBar").style.width = pct + "%";
|
|
1773
1773
|
$("uBlockState").textContent = b.active ? "active" : "window elapsed";
|
|
1774
1774
|
const remMin = Math.max(0, Math.round((b.endsAt - now) / 60000));
|
|
1775
|
-
|
|
1775
|
+
const remLabel = remMin >= 60 ? Math.floor(remMin / 60) + "h " + (remMin % 60) + "m left" : remMin + "m left";
|
|
1776
|
+
$("uBlockTime").textContent = b.active ? remLabel : "ended";
|
|
1776
1777
|
$("uBlockTokens").textContent = fmt(b.tokens || 0);
|
|
1777
1778
|
$("uBlockCost").textContent = fmtUsd(b.cost || 0);
|
|
1778
1779
|
$("uBlockBurn").textContent = fmt(Math.round(b.burnRatePerMin || 0)) + " tok/min";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enigmax/dashboard",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.26",
|
|
4
4
|
"description": "Local browser dashboard UI for enigma: the static page and chart assets enigma serves on its loopback dashboard (savings, real tool usage, in-browser settings). Installed on demand by enigma-cli; not a runtime dependency.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|